From f8de6ed3c0c31dbd0eaff6568994a76baeca602b Mon Sep 17 00:00:00 2001 From: Vincent-FK Date: Tue, 14 Dec 2021 17:20:36 +0100 Subject: [PATCH] better centering when copying gg frambuffer --- platform/common/plat_sdl.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/platform/common/plat_sdl.c b/platform/common/plat_sdl.c index 7217dc55..6c8105a6 100644 --- a/platform/common/plat_sdl.c +++ b/platform/common/plat_sdl.c @@ -1886,7 +1886,7 @@ void plat_video_flip(void) /* Copy Game Gear game pixels */ int offset_y = (plat_sdl_screen->h - gg_game_screen->h)/2; - int offset_x = (plat_sdl_screen->w - gg_game_screen->w)/2 - 1; + int offset_x = (plat_sdl_screen->w - gg_game_screen->w)/2; int y; for(y=0; yh; y++){ memcpy((uint16_t*)gg_game_screen->pixels + gg_game_screen->w*y,