X-Git-Url: https://notaz.gp2x.de/cgi-bin/gitweb.cgi?p=libpicofe.git;a=blobdiff_plain;f=plat_sdl.c;h=9b41299aab8a4ac65400b68fd7b3cbb777fb0b57;hp=2508d1c93bba39775903c0d43ad3a83247cf9fe2;hb=215e7ed2510e191664b611a578ffb987cf4fdab3;hpb=4db02226eb3c80f49f5c412f7718c437c5e817fc diff --git a/plat_sdl.c b/plat_sdl.c index 2508d1c..9b41299 100644 --- a/plat_sdl.c +++ b/plat_sdl.c @@ -222,8 +222,10 @@ int plat_sdl_init(void) SDL_VERSION(&wminfo.version); SDL_GetWMInfo(&wminfo); +#ifdef SDL_VIDEO_DRIVER_X11 display = wminfo.info.x11.display; window = (void *)wminfo.info.x11.window; +#endif ret = gl_init(display, window, &gl_quirks); if (ret == 0) {