centered screen in SMS

This commit is contained in:
Vincent-FK 2021-04-02 17:22:33 +02:00
parent 73b5e45905
commit 6f368f2b09

View File

@ -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 -------------