summaryrefslogtreecommitdiff
path: root/libretro
diff options
context:
space:
mode:
authoraliaspider2015-11-05 21:34:40 +0100
committeraliaspider2015-11-05 21:34:40 +0100
commit6891f9abfeaca7cda2471a18b859e90276f67029 (patch)
treea565067f8ef037f1906892c88ed7d64fe815b793 /libretro
parente143bacd13e2cffb7a6fe4304de948e7b77346c7 (diff)
downloadsnes9x2002-6891f9abfeaca7cda2471a18b859e90276f67029.tar.gz
snes9x2002-6891f9abfeaca7cda2471a18b859e90276f67029.tar.bz2
snes9x2002-6891f9abfeaca7cda2471a18b859e90276f67029.zip
fix reported resolution.
Diffstat (limited to 'libretro')
-rw-r--r--libretro/libretro.cpp9
1 files changed, 7 insertions, 2 deletions
diff --git a/libretro/libretro.cpp b/libretro/libretro.cpp
index 1059682..a9bef5f 100644
--- a/libretro/libretro.cpp
+++ b/libretro/libretro.cpp
@@ -193,14 +193,19 @@ void retro_set_controller_port_device(unsigned in_port, unsigned device)
void retro_get_system_av_info(struct retro_system_av_info *info)
{
- info->geometry.base_width = 256;
- info->geometry.base_height = 239;
+ info->geometry.base_width = SNES_WIDTH;
+ info->geometry.base_height = SNES_HEIGHT;
info->geometry.max_width = 512;
info->geometry.max_height = 512;
+
+ if(PPU.ScreenHeight == SNES_HEIGHT_EXTENDED)
+ info->geometry.base_height = SNES_HEIGHT_EXTENDED;
+
if (!Settings.PAL)
info->timing.fps = 21477272.0 / 357366.0;
else
info->timing.fps = 21281370.0 / 425568.0;
+
info->timing.sample_rate = samplerate;
info->geometry.aspect_ratio = 4.0f / 3.0f;
}