From f95c82f1ffadcb39afa35a1ddfd39b28acacb6a2 Mon Sep 17 00:00:00 2001 From: root Date: Thu, 28 Oct 2021 13:28:32 +0200 Subject: [PATCH] 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). --- 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 5f6962ca..9f067f48 100644 --- a/platform/common/plat_sdl.c +++ b/platform/common/plat_sdl.c @@ -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,