mirror of
https://github.com/libretro/RetroArch
synced 2025-03-29 22:20:21 +00:00
Simplify glx_wait_notify
This commit is contained in:
parent
61b4236079
commit
7c9f357c1b
@ -56,14 +56,6 @@ static PFNGLXCREATECONTEXTATTRIBSARBPROC glx_create_context_attribs;
|
||||
|
||||
static Bool glx_wait_notify(Display *d, XEvent *e, char *arg)
|
||||
{
|
||||
driver_t *driver = driver_get_ptr();
|
||||
gfx_ctx_glx_data_t *glx = (gfx_ctx_glx_data_t*)driver->video_context_data;
|
||||
|
||||
(void)d;
|
||||
(void)e;
|
||||
|
||||
if (!glx)
|
||||
return false;
|
||||
return (e->type == MapNotify) && (e->xmap.window == g_x11_win);
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user