Преглед на файлове

better centering when copying gg frambuffer

Vincent-FK преди 2 години
родител
ревизия
f8de6ed3c0
променени са 1 файла, в които са добавени 1 реда и са изтрити 1 реда
  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,