diff options
author | gameblabla | 2020-12-26 08:53:03 +0100 |
---|---|---|
committer | gameblabla | 2020-12-26 08:53:03 +0100 |
commit | 2c41876dd9913c2a49cd044a805df54915b95f0f (patch) | |
tree | e04b3f224a90c217289c49b84129faac19bf1248 /shell/menu | |
parent | 4c1a193d483b10ef63c27553f6e6e95af23552b8 (diff) | |
download | snesemu-2c41876dd9913c2a49cd044a805df54915b95f0f.tar.gz snesemu-2c41876dd9913c2a49cd044a805df54915b95f0f.tar.bz2 snesemu-2c41876dd9913c2a49cd044a805df54915b95f0f.zip |
Fix issue wit pitch being doubled by 2.
Change all of the code accordingly and simplify it.
This was made as to allocate less memory than needed, improve the speed of the scaler code
and make it more suitable for IPU mode.
Diffstat (limited to 'shell/menu')
-rw-r--r-- | shell/menu/menu.c | 10 |
1 files changed, 3 insertions, 7 deletions
diff --git a/shell/menu/menu.c b/shell/menu/menu.c index a8c24b5..b79d5ab 100644 --- a/shell/menu/menu.c +++ b/shell/menu/menu.c @@ -261,8 +261,6 @@ static void Input_Remapping() { SDL_FillRect( backbuffer, NULL, 0 ); print_string("Please press button for mapping", TextWhite, TextBlue, 37, 108, backbuffer->pixels); - bitmap_scale(0,0,320,240,sdl_screen->w,sdl_screen->h,320,0,(uint16_t* restrict)backbuffer->pixels,(uint16_t* restrict)sdl_screen->pixels); - while (SDL_PollEvent(&Event)) { if (Event.type == SDL_KEYDOWN) @@ -274,7 +272,7 @@ static void Input_Remapping() } } } - SDL_Flip(sdl_screen); + Update_Video_Menu(); } break; } @@ -336,8 +334,7 @@ static void Input_Remapping() if (currentselection == 12) print_string(text, TextRed, 0, 165, 65+2, backbuffer->pixels); else print_string(text, TextWhite, 0, 165, 65+2, backbuffer->pixels); - bitmap_scale(0,0,320,240,sdl_screen->w,sdl_screen->h,320,0,(uint16_t* restrict)backbuffer->pixels,(uint16_t* restrict)sdl_screen->pixels); - SDL_Flip(sdl_screen); + Update_Video_Menu(); } config_save(); @@ -516,8 +513,7 @@ void Menu() } } - bitmap_scale(0,0,320,240,sdl_screen->w,sdl_screen->h,320,0,(uint16_t* restrict)backbuffer->pixels,(uint16_t* restrict)sdl_screen->pixels); - SDL_Flip(sdl_screen); + Update_Video_Menu(); } SDL_FillRect(sdl_screen, NULL, 0); |