src/video/vivante/SDL_vivantevideo.c
changeset 10055 b2fd76446eee
parent 9998 f67cf37e9cd4
child 10202 16c283d1dcca
equal deleted inserted replaced
10054:fb06163059bf 10055:b2fd76446eee
   364 /* SDL Window Manager function                                               */
   364 /* SDL Window Manager function                                               */
   365 /*****************************************************************************/
   365 /*****************************************************************************/
   366 SDL_bool
   366 SDL_bool
   367 VIVANTE_GetWindowWMInfo(_THIS, SDL_Window * window, struct SDL_SysWMinfo *info)
   367 VIVANTE_GetWindowWMInfo(_THIS, SDL_Window * window, struct SDL_SysWMinfo *info)
   368 {
   368 {
   369 /*
       
   370     SDL_WindowData *data = (SDL_WindowData *) window->driverdata;
   369     SDL_WindowData *data = (SDL_WindowData *) window->driverdata;
       
   370     SDL_DisplayData *displaydata = SDL_GetDisplayDriverData(0);
   371 
   371 
   372     if (info->version.major == SDL_MAJOR_VERSION &&
   372     if (info->version.major == SDL_MAJOR_VERSION &&
   373         info->version.minor == SDL_MINOR_VERSION) {
   373         info->version.minor == SDL_MINOR_VERSION) {
   374         info->subsystem = SDL_SYSWM_VIVANTE;
   374         info->subsystem = SDL_SYSWM_VIVANTE;
       
   375         info->info.vivante.display = displaydata->native_display;
   375         info->info.vivante.window = data->native_window;
   376         info->info.vivante.window = data->native_window;
   376         return SDL_TRUE;
   377         return SDL_TRUE;
   377     } else {
   378     } else {
   378         SDL_SetError("Application not compiled with SDL %d.%d\n",
   379         SDL_SetError("Application not compiled with SDL %d.%d\n",
   379                      SDL_MAJOR_VERSION, SDL_MINOR_VERSION);
   380                      SDL_MAJOR_VERSION, SDL_MINOR_VERSION);
   380         return SDL_FALSE;
   381         return SDL_FALSE;
   381     }
   382     }
   382 */
       
   383     SDL_Unsupported();
       
   384     return SDL_FALSE;
       
   385 }
   383 }
   386 
   384 
   387 /*****************************************************************************/
   385 /*****************************************************************************/
   388 /* SDL event functions                                                       */
   386 /* SDL event functions                                                       */
   389 /*****************************************************************************/
   387 /*****************************************************************************/