diff options
author | Jon TURNEY <jon.turney@dronecode.org.uk> | 2009-11-07 19:28:18 +0000 |
---|---|---|
committer | Jon TURNEY <jon.turney@dronecode.org.uk> | 2010-04-28 14:26:52 +0100 |
commit | 81a081c1f0cb55df94cb10495aa7ad71cd5a9afb (patch) | |
tree | bbf62d83fa5b1561e66080fc45a364b1da4a5577 /hw/xwin/winmultiwindowwindow.c | |
parent | ffaae7c0c69a51a53a76146c79f3630ae197a443 (diff) |
Cygwin/X: AIGLX using native WGL
A rewrite of the XWin DDX AIGLX code to actually make it do something useful again
Signed-off-by: Jon TURNEY <jon.turney@dronecode.org.uk>
Reviewed-by: Colin Harrison <colin.harrison@virgin.net>
Diffstat (limited to 'hw/xwin/winmultiwindowwindow.c')
-rw-r--r-- | hw/xwin/winmultiwindowwindow.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/hw/xwin/winmultiwindowwindow.c b/hw/xwin/winmultiwindowwindow.c index 87ffc6d6b..95d9d71fc 100644 --- a/hw/xwin/winmultiwindowwindow.c +++ b/hw/xwin/winmultiwindowwindow.c @@ -47,6 +47,7 @@ extern HICON g_hIconX; extern HICON g_hSmallIconX; extern HWND g_hDlgDepthChange; +extern Bool g_fNativeGl; /* * Prototypes for local functions @@ -74,7 +75,7 @@ void winInitMultiWindowClass(void) { /* Setup our window class */ wcx.cbSize=sizeof(WNDCLASSEX); - wcx.style = CS_HREDRAW | CS_VREDRAW; + wcx.style = CS_HREDRAW | CS_VREDRAW | (g_fNativeGl ? CS_OWNDC : 0); wcx.lpfnWndProc = winTopLevelWindowProc; wcx.cbClsExtra = 0; wcx.cbWndExtra = 0; |