mirror of
https://github.com/FunKey-Project/RetroFE.git
synced 2025-12-12 17:58:53 +01:00
replace SDL_BlitSurface by memcpy
Signed-off-by: Vincent-FK <vincent.buso@funkey-project.com>
This commit is contained in:
parent
f76d500f4a
commit
8aef81685d
@ -59,7 +59,7 @@
|
||||
#define FUNKEY_ALL_POLLEVENT_DELAY 30 //ms
|
||||
//#define PERIOD_FORCE_REFRESH 1000 //ms
|
||||
|
||||
#define FPS 30 // TODO: set in conf file
|
||||
#define FPS 60 // TODO: set in conf file
|
||||
|
||||
//#define DEBUG_FPS
|
||||
#ifdef DEBUG_FPS
|
||||
|
||||
@ -357,7 +357,8 @@ void SDL::SDL_Rotate_270(SDL_Surface * src, SDL_Surface * dst){
|
||||
void SDL::renderAndFlipWindow( )
|
||||
{
|
||||
//SDL_BlitSurface(window_virtual_, NULL, window_, NULL);
|
||||
SDL_Rotate_270(window_virtual_, window_);
|
||||
memcpy(window_->pixels, window_virtual_->pixels, window_->h*window_->w*sizeof(uint32_t));
|
||||
//SDL_Rotate_270(window_virtual_, window_);
|
||||
|
||||
SDL_Flip(window_);
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user