Changeset 21029 in vbox for trunk/src/VBox/Frontends/VBoxSDL/Framebuffer.cpp
- Timestamp:
- Jun 29, 2009 3:20:27 PM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Frontends/VBoxSDL/Framebuffer.cpp
r20433 r21029 46 46 #include "Framebuffer.h" 47 47 #include "Ico64x01.h" 48 49 #if defined(RT_OS_WINDOWS) || defined(RT_OS_LINUX) 50 #include <SDL_syswm.h> /* for SDL_GetWMInfo() */ 51 #endif 48 52 49 53 #if defined(VBOX_WITH_XPCOM) … … 864 868 */ 865 869 mScreen = SDL_SetVideoMode(newWidth, newHeight, 0, sdlFlags); 870 871 /* 872 * Set the Window ID. Currently used for OpenGL accelerated guests. 873 */ 874 # if defined (RT_OS_WINDOWS) 875 SDL_SysWMinfo info; 876 SDL_VERSION(&info.version); 877 if (SDL_GetWMInfo(&info)) 878 mWinId = (ULONG64) info.window; 879 # elif defined (RT_OS_LINUX) 880 SDL_SysWMinfo info; 881 SDL_VERSION(&info.version); 882 if (SDL_GetWMInfo(&info)) 883 mWinId = (ULONG64) info.info.x11.wmwindow; 884 # else 885 /* XXX ignore this for other architectures */ 886 # endif 866 887 #endif 867 888 #ifdef VBOX_SECURELABEL
Note:
See TracChangeset
for help on using the changeset viewer.