mirror of
https://github.com/CTCaer/RetroArch.git
synced 2025-01-11 13:26:34 +00:00
(dispserv_x11.c) Silence warning
This commit is contained in:
parent
1233c9d0dc
commit
b10a318f16
@ -57,6 +57,7 @@ typedef struct
|
||||
bool decorations;
|
||||
} dispserv_x11_t;
|
||||
|
||||
#ifdef HAVE_XRANDR
|
||||
static Display* x11_display_server_open_display(void)
|
||||
{
|
||||
Display *dpy = g_x11_dpy;
|
||||
@ -72,7 +73,9 @@ static Display* x11_display_server_open_display(void)
|
||||
|
||||
return dpy;
|
||||
}
|
||||
#endif
|
||||
|
||||
#ifdef HAVE_XRANDR
|
||||
static void x11_display_server_close_display(Display *dpy)
|
||||
{
|
||||
if (!dpy || x11_display_server_using_global_dpy || dpy == g_x11_dpy)
|
||||
@ -80,6 +83,7 @@ static void x11_display_server_close_display(Display *dpy)
|
||||
|
||||
XCloseDisplay(dpy);
|
||||
}
|
||||
#endif
|
||||
|
||||
static void* x11_display_server_init(void)
|
||||
{
|
||||
|
Loading…
x
Reference in New Issue
Block a user