mirror of
https://github.com/libretro/RetroArch
synced 2025-02-27 09:41:14 +00:00
(GX) adjust refresh rate for non-interlaced mode
fix pal-60 detection
This commit is contained in:
parent
f5c5da8959
commit
5400d9eaa4
@ -101,9 +101,9 @@ void gx_set_video_mode(unsigned fbWidth, unsigned lines)
|
|||||||
{
|
{
|
||||||
case CONF_VIDEO_PAL:
|
case CONF_VIDEO_PAL:
|
||||||
if (CONF_GetEuRGB60() > 0)
|
if (CONF_GetEuRGB60() > 0)
|
||||||
tvmode = VI_PAL;
|
|
||||||
else
|
|
||||||
tvmode = VI_EURGB60;
|
tvmode = VI_EURGB60;
|
||||||
|
else
|
||||||
|
tvmode = VI_PAL;
|
||||||
break;
|
break;
|
||||||
case CONF_VIDEO_MPAL:
|
case CONF_VIDEO_MPAL:
|
||||||
tvmode = VI_MPAL;
|
tvmode = VI_MPAL;
|
||||||
@ -244,6 +244,21 @@ void gx_set_video_mode(unsigned fbWidth, unsigned lines)
|
|||||||
GX_InvalidateTexAll();
|
GX_InvalidateTexAll();
|
||||||
GX_Flush();
|
GX_Flush();
|
||||||
|
|
||||||
|
if (tvmode == VI_PAL)
|
||||||
|
{
|
||||||
|
if (modetype == VI_NON_INTERLACE)
|
||||||
|
driver_set_monitor_refresh_rate(50.0801f);
|
||||||
|
else
|
||||||
|
driver_set_monitor_refresh_rate(50.0f);
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
if (modetype == VI_NON_INTERLACE)
|
||||||
|
driver_set_monitor_refresh_rate(59.8261f);
|
||||||
|
else
|
||||||
|
driver_set_monitor_refresh_rate(59.94f);
|
||||||
|
}
|
||||||
|
|
||||||
g_current_framebuf = 0;
|
g_current_framebuf = 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -922,7 +937,7 @@ static bool gx_frame(void *data, const void *frame,
|
|||||||
char fps_txt[128];
|
char fps_txt[128];
|
||||||
char mem1_txt[128];
|
char mem1_txt[128];
|
||||||
unsigned x = 15;
|
unsigned x = 15;
|
||||||
unsigned y = 15;
|
unsigned y = 35;
|
||||||
|
|
||||||
gfx_get_fps(fps_txt, sizeof(fps_txt), true);
|
gfx_get_fps(fps_txt, sizeof(fps_txt), true);
|
||||||
gx_blit_line(x, y, fps_txt);
|
gx_blit_line(x, y, fps_txt);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user