mirror of
https://github.com/libretro/RetroArch
synced 2025-04-17 20:43:10 +00:00
(X11) get_video_mode - make sure parameter does not hide global
variable of the same name
This commit is contained in:
parent
e384c2b099
commit
37aa13bb47
@ -277,7 +277,7 @@ float x11_get_refresh_rate(void *data)
|
|||||||
|
|
||||||
static bool get_video_mode(
|
static bool get_video_mode(
|
||||||
Display *dpy, unsigned width, unsigned height,
|
Display *dpy, unsigned width, unsigned height,
|
||||||
XF86VidModeModeInfo *mode, XF86VidModeModeInfo *desktop_mode)
|
XF86VidModeModeInfo *mode, XF86VidModeModeInfo *x11_desktop_mode)
|
||||||
{
|
{
|
||||||
int i, num_modes = 0;
|
int i, num_modes = 0;
|
||||||
bool ret = false;
|
bool ret = false;
|
||||||
@ -296,7 +296,7 @@ static bool get_video_mode(
|
|||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
*desktop_mode = *modes[0];
|
*x11_desktop_mode = *modes[0];
|
||||||
|
|
||||||
/* If we use black frame insertion, we fake a 60 Hz monitor
|
/* If we use black frame insertion, we fake a 60 Hz monitor
|
||||||
* for 120 Hz one, etc, so try to match that. */
|
* for 120 Hz one, etc, so try to match that. */
|
||||||
|
Loading…
x
Reference in New Issue
Block a user