Allow SDL driver to work as well in 1.3.

This commit is contained in:
Themaister 2011-09-13 20:01:10 +02:00
parent 7da7ab2ce7
commit e8bd64e898

View File

@ -286,7 +286,10 @@ void sdlwrap_check_window(bool *quit,
bool sdlwrap_get_wm_info(SDL_SysWMinfo *info)
{
#if SDL_MODERN
return SDL_GetWindowWMInfo(g_window, info);
if (g_window)
return SDL_GetWindowWMInfo(g_window, info);
else
return SDL_GetWMInfo(info) == 1;
#else
return SDL_GetWMInfo(info) == 1;
#endif