Stefan Dösinger : ddraw: Catch attempts to opengl-render to the desktop window.
Alexandre Julliard
julliard at winehq.org
Tue Sep 2 08:33:30 CDT 2008
Module: wine
Branch: master
Commit: c1eabc2ce7d365d4f9bf9ce0926853b0a0341d87
URL: http://source.winehq.org/git/wine.git/?a=commit;h=c1eabc2ce7d365d4f9bf9ce0926853b0a0341d87
Author: Stefan Dösinger <stefan at codeweavers.com>
Date: Wed Aug 27 13:20:50 2008 -0500
ddraw: Catch attempts to opengl-render to the desktop window.
---
dlls/ddraw/ddraw.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/dlls/ddraw/ddraw.c b/dlls/ddraw/ddraw.c
index 1728c96..9fdbd27 100644
--- a/dlls/ddraw/ddraw.c
+++ b/dlls/ddraw/ddraw.c
@@ -3279,7 +3279,7 @@ IDirectDrawImpl_AttachD3DDevice(IDirectDrawImpl *This,
TRACE("(%p)->(%p)\n", This, primary);
/* If there's no window, create a hidden window. WineD3D needs it */
- if(window == 0)
+ if(window == 0 || window == GetDesktopWindow())
{
window = CreateWindowExA(0, This->classname, "Hidden D3D Window",
WS_DISABLED, 0, 0,
More information about the wine-cvs
mailing list