Browse Source

better centering when copying gg frambuffer

Vincent-FK 2 years ago
parent
commit
f8de6ed3c0
1 changed files with 1 additions and 1 deletions
  1. 1 1
      platform/common/plat_sdl.c

+ 1 - 1
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; y<gg_game_screen->h; y++){
 				memcpy((uint16_t*)gg_game_screen->pixels + gg_game_screen->w*y,