Set SMS canvas at the right of the screen instead of having one black bar on each side (seems to be the most "natural" way to emulate it).

This commit is contained in:
root 2021-10-28 13:28:32 +02:00
parent ea989ad9bc
commit f95c82f1ff

View File

@ -1592,7 +1592,7 @@ void plat_video_flip(void)
/* 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 + 5;
int offset_x = (plat_sdl_screen->w - sms_game_screen->w)/2 + 1;
int y;
for(y=0; y<192; y++){
memcpy((uint16_t*)sms_game_screen->pixels + sms_game_screen->w*y,