all repos — mgba @ 12c2ffb0e273f18e78d12fb419883f59bd29232b

mGBA Game Boy Advance Emulator

Libretro: Increase max GB resolution for SGB
Vicki Pfau vi@endrift.com
Sun, 09 Sep 2018 14:40:32 -0700
commit

12c2ffb0e273f18e78d12fb419883f59bd29232b

parent

0d7cdb9ed874a909ec71aa165f5280153761974d

1 files changed, 11 insertions(+), 2 deletions(-)

jump to
M src/platform/libretro/libretro.csrc/platform/libretro/libretro.c

@@ -187,8 +187,17 @@ unsigned width, height;

core->desiredVideoDimensions(core, &width, &height); info->geometry.base_width = width; info->geometry.base_height = height; - info->geometry.max_width = width; - info->geometry.max_height = height; +#ifdef M_CORE_GB + if (core->platform(core) == PLATFORM_GB) { + info->geometry.max_width = 256; + info->geometry.max_height = 224; + } else +#endif + { + info->geometry.max_width = width; + info->geometry.max_height = height; + } + info->geometry.aspect_ratio = width / (double) height; info->timing.fps = core->frequency(core) / (float) core->frameCycles(core); info->timing.sample_rate = 32768;