mirror of
https://github.com/ekeeke/Genesis-Plus-GX.git
synced 2025-02-27 00:23:38 +01:00
(p1pkin) Bitmap size fix - out of bounds fixes (for Game Gear
overscan mode)
This commit is contained in:
parent
157a7ed48f
commit
6e0e40200b
@ -291,8 +291,9 @@ static void configure_controls(void)
|
|||||||
for(i = 0; i < MAX_INPUTS; i++)
|
for(i = 0; i < MAX_INPUTS; i++)
|
||||||
{
|
{
|
||||||
config.input[i].padtype = DEVICE_PAD6B;
|
config.input[i].padtype = DEVICE_PAD6B;
|
||||||
input.system[i] = SYSTEM_MD_GAMEPAD;
|
|
||||||
}
|
}
|
||||||
|
input.system[0] = SYSTEM_MD_GAMEPAD;
|
||||||
|
input.system[1] = SYSTEM_MD_GAMEPAD;
|
||||||
break;
|
break;
|
||||||
case SYSTEM_GG:
|
case SYSTEM_GG:
|
||||||
case SYSTEM_SMS:
|
case SYSTEM_SMS:
|
||||||
@ -779,8 +780,8 @@ static void retro_set_viewport_dimensions(void)
|
|||||||
|
|
||||||
retro_reset();
|
retro_reset();
|
||||||
|
|
||||||
vwidth = bitmap.viewport.w;
|
vwidth = bitmap.viewport.w + (bitmap.viewport.x * 2);
|
||||||
vheight = bitmap.viewport.h;
|
vheight = bitmap.viewport.h + (bitmap.viewport.y * 2);
|
||||||
|
|
||||||
#if defined(USE_NTSC)
|
#if defined(USE_NTSC)
|
||||||
if (config.ntsc)
|
if (config.ntsc)
|
||||||
@ -1104,9 +1105,9 @@ void retro_run(void)
|
|||||||
system_frame_sms(0);
|
system_frame_sms(0);
|
||||||
|
|
||||||
#if defined(USE_NTSC)
|
#if defined(USE_NTSC)
|
||||||
video_cb(bitmap_data_ + bitmap.viewport.y * 1024, config.ntsc ? vwidth : bitmap.viewport.w, bitmap.viewport.h, 2048);
|
video_cb(bitmap.data, config.ntsc ? vwidth : (bitmap.viewport.w + (bitmap.viewport.x * 2)), bitmap.viewport.h + (bitmap.viewport.y * 2), bitmap.pitch);
|
||||||
#else
|
#else
|
||||||
video_cb(bitmap_data_ + bitmap.viewport.x + bitmap.viewport.y * 1024, bitmap.viewport.w, bitmap.viewport.h, 2048);
|
video_cb(bitmap.data, bitmap.viewport.w + (bitmap.viewport.x * 2), bitmap.viewport.h + (bitmap.viewport.y * 2), bitmap.pitch);
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
aud = audio_update(soundbuffer) << 1;
|
aud = audio_update(soundbuffer) << 1;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user