From 37aa13bb474b248a00a202df48a4d59857e5b65a Mon Sep 17 00:00:00 2001 From: twinaphex Date: Mon, 30 Aug 2021 18:39:02 +0200 Subject: [PATCH] (X11) get_video_mode - make sure parameter does not hide global variable of the same name --- gfx/common/x11_common.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/gfx/common/x11_common.c b/gfx/common/x11_common.c index f9aebf5040..257c804704 100644 --- a/gfx/common/x11_common.c +++ b/gfx/common/x11_common.c @@ -277,7 +277,7 @@ float x11_get_refresh_rate(void *data) static bool get_video_mode( Display *dpy, unsigned width, unsigned height, - XF86VidModeModeInfo *mode, XF86VidModeModeInfo *desktop_mode) + XF86VidModeModeInfo *mode, XF86VidModeModeInfo *x11_desktop_mode) { int i, num_modes = 0; bool ret = false; @@ -296,7 +296,7 @@ static bool get_video_mode( return false; } - *desktop_mode = *modes[0]; + *x11_desktop_mode = *modes[0]; /* If we use black frame insertion, we fake a 60 Hz monitor * for 120 Hz one, etc, so try to match that. */