In GetDC use the parent drawable when DCX_PARENTCLIP is set.

This commit is contained in:
Alexandre Julliard 2004-08-24 18:49:34 +00:00
parent 100073e17a
commit 8680ce1a0e
1 changed files with 1 additions and 1 deletions

View File

@ -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;