src/video/vivante/SDL_vivantevideo.c
changeset 10055 b2fd76446eee
parent 9998 f67cf37e9cd4
child 10202 16c283d1dcca
     1.1 --- a/src/video/vivante/SDL_vivantevideo.c	Sat Jan 16 21:25:10 2016 +0100
     1.2 +++ b/src/video/vivante/SDL_vivantevideo.c	Sat Jan 16 21:58:49 2016 -0800
     1.3 @@ -366,12 +366,13 @@
     1.4  SDL_bool
     1.5  VIVANTE_GetWindowWMInfo(_THIS, SDL_Window * window, struct SDL_SysWMinfo *info)
     1.6  {
     1.7 -/*
     1.8      SDL_WindowData *data = (SDL_WindowData *) window->driverdata;
     1.9 +    SDL_DisplayData *displaydata = SDL_GetDisplayDriverData(0);
    1.10  
    1.11      if (info->version.major == SDL_MAJOR_VERSION &&
    1.12          info->version.minor == SDL_MINOR_VERSION) {
    1.13          info->subsystem = SDL_SYSWM_VIVANTE;
    1.14 +        info->info.vivante.display = displaydata->native_display;
    1.15          info->info.vivante.window = data->native_window;
    1.16          return SDL_TRUE;
    1.17      } else {
    1.18 @@ -379,9 +380,6 @@
    1.19                       SDL_MAJOR_VERSION, SDL_MINOR_VERSION);
    1.20          return SDL_FALSE;
    1.21      }
    1.22 -*/
    1.23 -    SDL_Unsupported();
    1.24 -    return SDL_FALSE;
    1.25  }
    1.26  
    1.27  /*****************************************************************************/