From 8680ce1a0ef32a81962d2cb3a9d48c1d21db89c2 Mon Sep 17 00:00:00 2001 From: Alexandre Julliard Date: Tue, 24 Aug 2004 18:49:34 +0000 Subject: [PATCH] In GetDC use the parent drawable when DCX_PARENTCLIP is set. --- dlls/x11drv/winpos.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dlls/x11drv/winpos.c b/dlls/x11drv/winpos.c index d9fbdd3e49d..61beee7e65c 100644 --- a/dlls/x11drv/winpos.c +++ b/dlls/x11drv/winpos.c @@ -417,7 +417,7 @@ BOOL X11DRV_GetDC( HWND hwnd, HDC hdc, HRGN hrgn, DWORD flags ) if (top != hwnd) { escape.drawable_org.x = escape.drawable_org.y = 0; - if (flags & DCX_WINDOW) + if (flags & (DCX_WINDOW|DCX_PARENTCLIP)) { escape.org.x = win->rectWindow.left - win->rectClient.left; escape.org.y = win->rectWindow.top - win->rectClient.top; -- 2.11.4.GIT