Added the GFX_Display to the wminfo structure, contributed by Eric

--HG--
branch : SDL-1.2
extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/branches/SDL-1.2%402107
This commit is contained in:
Sam Lantinga 2006-09-24 00:08:28 +00:00
parent 6a16eb68dc
commit 8460b069f6
2 changed files with 15 additions and 1 deletions

View file

@ -398,6 +398,8 @@ static void unlock_display(void)
XSync(SDL_Display, False);
SDL_Unlock_EventThread();
}
#include <stdio.h>
int X11_GetWMInfo(_THIS, SDL_SysWMinfo *info)
{
if ( info->version.major <= SDL_MAJOR_VERSION ) {
@ -410,6 +412,14 @@ int X11_GetWMInfo(_THIS, SDL_SysWMinfo *info)
info->info.x11.fswindow = FSwindow;
info->info.x11.wmwindow = WMwindow;
}
if ( SDL_VERSIONNUM(info->version.major,
info->version.minor,
info->version.patch) >= 1212 ) {
info->info.x11.gfxdisplay = GFX_Display;
}
info->info.x11.lock_func = lock_display;
info->info.x11.unlock_func = unlock_display;
return(1);