Fixed SDL_GetWindowWMInfo() returning success on three unsupported platforms.
authorPhilipp Wiesemann <philipp.wiesemann@arcor.de>
Thu, 15 Jun 2017 23:30:29 +0200
changeset 11098b5a4675cc883
parent 11097 62a0a6e9b48b
child 11099 8b902bfc616c
Fixed SDL_GetWindowWMInfo() returning success on three unsupported platforms.
src/video/pandora/SDL_pandora.c
src/video/psp/SDL_pspvideo.c
src/video/raspberry/SDL_rpivideo.c
     1.1 --- a/src/video/pandora/SDL_pandora.c	Mon Jun 12 21:35:24 2017 -0400
     1.2 +++ b/src/video/pandora/SDL_pandora.c	Thu Jun 15 23:30:29 2017 +0200
     1.3 @@ -116,7 +116,9 @@
     1.4      device->RestoreWindow = PND_restorewindow;
     1.5      device->SetWindowGrab = PND_setwindowgrab;
     1.6      device->DestroyWindow = PND_destroywindow;
     1.7 +#if 0
     1.8      device->GetWindowWMInfo = PND_getwindowwminfo;
     1.9 +#endif
    1.10      device->GL_LoadLibrary = PND_gl_loadlibrary;
    1.11      device->GL_GetProcAddress = PND_gl_getprocaddres;
    1.12      device->GL_UnloadLibrary = PND_gl_unloadlibrary;
    1.13 @@ -298,6 +300,7 @@
    1.14  /*****************************************************************************/
    1.15  /* SDL Window Manager function                                               */
    1.16  /*****************************************************************************/
    1.17 +#if 0
    1.18  SDL_bool
    1.19  PND_getwindowwminfo(_THIS, SDL_Window * window, struct SDL_SysWMinfo *info)
    1.20  {
    1.21 @@ -312,6 +315,7 @@
    1.22      /* Failed to get window manager information */
    1.23      return SDL_FALSE;
    1.24  }
    1.25 +#endif
    1.26  
    1.27  /*****************************************************************************/
    1.28  /* SDL OpenGL/OpenGL ES functions                                            */
     2.1 --- a/src/video/psp/SDL_pspvideo.c	Mon Jun 12 21:35:24 2017 -0400
     2.2 +++ b/src/video/psp/SDL_pspvideo.c	Thu Jun 15 23:30:29 2017 +0200
     2.3 @@ -127,7 +127,9 @@
     2.4      device->RestoreWindow = PSP_RestoreWindow;
     2.5      device->SetWindowGrab = PSP_SetWindowGrab;
     2.6      device->DestroyWindow = PSP_DestroyWindow;
     2.7 +#if 0
     2.8      device->GetWindowWMInfo = PSP_GetWindowWMInfo;
     2.9 +#endif
    2.10      device->GL_LoadLibrary = PSP_GL_LoadLibrary;
    2.11      device->GL_GetProcAddress = PSP_GL_GetProcAddress;
    2.12      device->GL_UnloadLibrary = PSP_GL_UnloadLibrary;
    2.13 @@ -291,6 +293,7 @@
    2.14  /*****************************************************************************/
    2.15  /* SDL Window Manager function                                               */
    2.16  /*****************************************************************************/
    2.17 +#if 0
    2.18  SDL_bool
    2.19  PSP_GetWindowWMInfo(_THIS, SDL_Window * window, struct SDL_SysWMinfo *info)
    2.20  {
    2.21 @@ -305,6 +308,7 @@
    2.22      /* Failed to get window manager information */
    2.23      return SDL_FALSE;
    2.24  }
    2.25 +#endif
    2.26  
    2.27  
    2.28  /* TO Write Me */
     3.1 --- a/src/video/raspberry/SDL_rpivideo.c	Mon Jun 12 21:35:24 2017 -0400
     3.2 +++ b/src/video/raspberry/SDL_rpivideo.c	Thu Jun 15 23:30:29 2017 +0200
     3.3 @@ -111,7 +111,9 @@
     3.4      device->RestoreWindow = RPI_RestoreWindow;
     3.5      device->SetWindowGrab = RPI_SetWindowGrab;
     3.6      device->DestroyWindow = RPI_DestroyWindow;
     3.7 +#if 0
     3.8      device->GetWindowWMInfo = RPI_GetWindowWMInfo;
     3.9 +#endif
    3.10      device->GL_LoadLibrary = RPI_GLES_LoadLibrary;
    3.11      device->GL_GetProcAddress = RPI_GLES_GetProcAddress;
    3.12      device->GL_UnloadLibrary = RPI_GLES_UnloadLibrary;
    3.13 @@ -367,6 +369,7 @@
    3.14  /*****************************************************************************/
    3.15  /* SDL Window Manager function                                               */
    3.16  /*****************************************************************************/
    3.17 +#if 0
    3.18  SDL_bool
    3.19  RPI_GetWindowWMInfo(_THIS, SDL_Window * window, struct SDL_SysWMinfo *info)
    3.20  {
    3.21 @@ -381,6 +384,7 @@
    3.22      /* Failed to get window manager information */
    3.23      return SDL_FALSE;
    3.24  }
    3.25 +#endif
    3.26  
    3.27  #endif /* SDL_VIDEO_DRIVER_RPI */
    3.28