Merge pull request #358 from negativeExponent/updates
Use proper geometry when switching ntsc filter on or off
This commit is contained in:
@@ -968,13 +968,14 @@ void retro_get_system_av_info(struct retro_system_av_info *info)
|
|||||||
unsigned width = NES_WIDTH - (overscan_h ? 16 : 0);
|
unsigned width = NES_WIDTH - (overscan_h ? 16 : 0);
|
||||||
unsigned height = NES_HEIGHT - (overscan_v ? 16 : 0);
|
unsigned height = NES_HEIGHT - (overscan_v ? 16 : 0);
|
||||||
#endif
|
#endif
|
||||||
info->geometry.base_width = width;
|
|
||||||
info->geometry.base_height = height;
|
|
||||||
#ifdef HAVE_NTSC_FILTER
|
#ifdef HAVE_NTSC_FILTER
|
||||||
|
info->geometry.base_width = (use_ntsc ? NES_NTSC_OUT_WIDTH(width) : width);
|
||||||
info->geometry.max_width = (use_ntsc ? NTSC_WIDTH : NES_WIDTH);
|
info->geometry.max_width = (use_ntsc ? NTSC_WIDTH : NES_WIDTH);
|
||||||
#else
|
#else
|
||||||
|
info->geometry.base_width = width;
|
||||||
info->geometry.max_width = NES_WIDTH;
|
info->geometry.max_width = NES_WIDTH;
|
||||||
#endif
|
#endif
|
||||||
|
info->geometry.base_height = height;
|
||||||
info->geometry.max_height = NES_HEIGHT;
|
info->geometry.max_height = NES_HEIGHT;
|
||||||
info->geometry.aspect_ratio = (float)(use_par ? NES_8_7_PAR : NES_4_3);
|
info->geometry.aspect_ratio = (float)(use_par ? NES_8_7_PAR : NES_4_3);
|
||||||
info->timing.sample_rate = (float)sndsamplerate;
|
info->timing.sample_rate = (float)sndsamplerate;
|
||||||
|
|||||||
Reference in New Issue
Block a user