From 6f368f2b098fc738d0d41ef182dd2322703607f2 Mon Sep 17 00:00:00 2001 From: Vincent-FK Date: Fri, 2 Apr 2021 17:22:33 +0200 Subject: [PATCH] centered screen in SMS --- platform/common/plat_sdl.c | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/platform/common/plat_sdl.c b/platform/common/plat_sdl.c index f273fe78..e771301d 100644 --- a/platform/common/plat_sdl.c +++ b/platform/common/plat_sdl.c @@ -1548,13 +1548,12 @@ void plat_video_flip(void) /* Surface with game data */ SDL_Surface *game_surface; -#if 0 /* Sega Master System -> 256*192 res in 320*240 surface */ if (PicoIn.AHW & PAHW_SMS){ /* Copy sms game pixels */ int offset_y = (plat_sdl_screen->h - sms_game_screen->h)/2; - int offset_x = (plat_sdl_screen->w - sms_game_screen->w)/2 + 6; + int offset_x = (plat_sdl_screen->w - sms_game_screen->w)/2 + 3; int y; for(y=0; y<192; y++){ memcpy((uint16_t*)sms_game_screen->pixels + sms_game_screen->w*y, @@ -1567,9 +1566,6 @@ void plat_video_flip(void) else{ game_surface = plat_sdl_screen; } -#else - game_surface = plat_sdl_screen; -#endif /// --------------Optimized Flip depending on aspect ratio -------------