[PATCH] Remove some ancient piece of code which was used to get the X11 drawable. We don't need that anymore. Just get a HDC for the hwnd that is passed. This fixes a number of d3d child window rendering problems in the dx sdk mfcfog/mfctex samples and in more programs. It is also a part of the solution for bug 9786.

Roderick Colenbrander thunderbird2k at gmx.net
Wed Oct 3 15:13:30 CDT 2007


---
 dlls/wined3d/device.c |    1 -
 1 files changed, 0 insertions(+), 1 deletions(-)

diff --git a/dlls/wined3d/device.c b/dlls/wined3d/device.c
index 082a13f..4f489cf 100644
--- a/dlls/wined3d/device.c
+++ b/dlls/wined3d/device.c
@@ -1379,7 +1379,6 @@ static HRESULT WINAPI IWineD3DDeviceImpl_CreateAdditionalSwapChain(IWineD3DDevic
         object->win_handle = This->createParms.hFocusWindow;
     }
 
-    object->win_handle = GetAncestor(object->win_handle, GA_ROOT);
     hDc                = GetDC(object->win_handle);
     TRACE("Using hDc %p\n", hDc);
 
-- 
1.5.2.4


--========GMX7201191441899528124--



More information about the wine-patches mailing list