mirror of https://github.com/encounter/SDL.git
Fixed SDL_GetWindowWMInfo() returning success on three unsupported platforms.
This commit is contained in:
parent
a509719fc3
commit
60c0f7e243
|
@ -116,7 +116,9 @@ PND_create()
|
|||
device->RestoreWindow = PND_restorewindow;
|
||||
device->SetWindowGrab = PND_setwindowgrab;
|
||||
device->DestroyWindow = PND_destroywindow;
|
||||
#if 0
|
||||
device->GetWindowWMInfo = PND_getwindowwminfo;
|
||||
#endif
|
||||
device->GL_LoadLibrary = PND_gl_loadlibrary;
|
||||
device->GL_GetProcAddress = PND_gl_getprocaddres;
|
||||
device->GL_UnloadLibrary = PND_gl_unloadlibrary;
|
||||
|
@ -298,6 +300,7 @@ PND_destroywindow(_THIS, SDL_Window * window)
|
|||
/*****************************************************************************/
|
||||
/* SDL Window Manager function */
|
||||
/*****************************************************************************/
|
||||
#if 0
|
||||
SDL_bool
|
||||
PND_getwindowwminfo(_THIS, SDL_Window * window, struct SDL_SysWMinfo *info)
|
||||
{
|
||||
|
@ -312,6 +315,7 @@ PND_getwindowwminfo(_THIS, SDL_Window * window, struct SDL_SysWMinfo *info)
|
|||
/* Failed to get window manager information */
|
||||
return SDL_FALSE;
|
||||
}
|
||||
#endif
|
||||
|
||||
/*****************************************************************************/
|
||||
/* SDL OpenGL/OpenGL ES functions */
|
||||
|
|
|
@ -127,7 +127,9 @@ PSP_Create()
|
|||
device->RestoreWindow = PSP_RestoreWindow;
|
||||
device->SetWindowGrab = PSP_SetWindowGrab;
|
||||
device->DestroyWindow = PSP_DestroyWindow;
|
||||
#if 0
|
||||
device->GetWindowWMInfo = PSP_GetWindowWMInfo;
|
||||
#endif
|
||||
device->GL_LoadLibrary = PSP_GL_LoadLibrary;
|
||||
device->GL_GetProcAddress = PSP_GL_GetProcAddress;
|
||||
device->GL_UnloadLibrary = PSP_GL_UnloadLibrary;
|
||||
|
@ -291,6 +293,7 @@ PSP_DestroyWindow(_THIS, SDL_Window * window)
|
|||
/*****************************************************************************/
|
||||
/* SDL Window Manager function */
|
||||
/*****************************************************************************/
|
||||
#if 0
|
||||
SDL_bool
|
||||
PSP_GetWindowWMInfo(_THIS, SDL_Window * window, struct SDL_SysWMinfo *info)
|
||||
{
|
||||
|
@ -305,6 +308,7 @@ PSP_GetWindowWMInfo(_THIS, SDL_Window * window, struct SDL_SysWMinfo *info)
|
|||
/* Failed to get window manager information */
|
||||
return SDL_FALSE;
|
||||
}
|
||||
#endif
|
||||
|
||||
|
||||
/* TO Write Me */
|
||||
|
|
|
@ -111,7 +111,9 @@ RPI_Create()
|
|||
device->RestoreWindow = RPI_RestoreWindow;
|
||||
device->SetWindowGrab = RPI_SetWindowGrab;
|
||||
device->DestroyWindow = RPI_DestroyWindow;
|
||||
#if 0
|
||||
device->GetWindowWMInfo = RPI_GetWindowWMInfo;
|
||||
#endif
|
||||
device->GL_LoadLibrary = RPI_GLES_LoadLibrary;
|
||||
device->GL_GetProcAddress = RPI_GLES_GetProcAddress;
|
||||
device->GL_UnloadLibrary = RPI_GLES_UnloadLibrary;
|
||||
|
@ -367,6 +369,7 @@ RPI_SetWindowGrab(_THIS, SDL_Window * window, SDL_bool grabbed)
|
|||
/*****************************************************************************/
|
||||
/* SDL Window Manager function */
|
||||
/*****************************************************************************/
|
||||
#if 0
|
||||
SDL_bool
|
||||
RPI_GetWindowWMInfo(_THIS, SDL_Window * window, struct SDL_SysWMinfo *info)
|
||||
{
|
||||
|
@ -381,6 +384,7 @@ RPI_GetWindowWMInfo(_THIS, SDL_Window * window, struct SDL_SysWMinfo *info)
|
|||
/* Failed to get window manager information */
|
||||
return SDL_FALSE;
|
||||
}
|
||||
#endif
|
||||
|
||||
#endif /* SDL_VIDEO_DRIVER_RPI */
|
||||
|
||||
|
|
Loading…
Reference in New Issue