X-Git-Url: https://notaz.gp2x.de/cgi-bin/gitweb.cgi?p=sdl_omap.git;a=blobdiff_plain;f=src%2Fvideo%2Fomapdss%2Flinux%2Fxenv.c;h=5a81cc7a5fd12409f3337675c84be9a2ec9a54b0;hp=6b93118df63fd77337715cc6bb5258f1650c0f4c;hb=ee7e6b2d8bc82029aac405d13f719f4532851224;hpb=7eac0547921ad8b0b522a50716e5d21021ec06fb diff --git a/src/video/omapdss/linux/xenv.c b/src/video/omapdss/linux/xenv.c index 6b93118..5a81cc7 100644 --- a/src/video/omapdss/linux/xenv.c +++ b/src/video/omapdss/linux/xenv.c @@ -448,6 +448,20 @@ int xenv_keycode_to_keysym(int kc, int shift) return -1; } +int xenv_get_window(void **display, int *screen, void **window) +{ + *display = *window = NULL; + *screen = 0; + if (g_xstuff.display && g_xstuff.window) { + *display = g_xstuff.display; + *screen = DefaultScreen(g_xstuff.display); + *window = (void *)g_xstuff.window; + return 0; + } + + return -1; +} + void xenv_finish(void) { // TODO: cleanup X?