Alexandre Julliard : winex11: Fix the DC rect offset for a released DC.
Alexandre Julliard
julliard at winehq.org
Tue Feb 16 11:44:41 CST 2010
Module: wine
Branch: master
Commit: bcf88b58856637288862a9167ad2e0b31c00eddb
URL: http://source.winehq.org/git/wine.git/?a=commit;h=bcf88b58856637288862a9167ad2e0b31c00eddb
Author: Alexandre Julliard <julliard at winehq.org>
Date: Tue Feb 16 12:37:42 2010 +0100
winex11: Fix the DC rect offset for a released DC.
---
dlls/winex11.drv/window.c | 1 +
1 files changed, 1 insertions(+), 0 deletions(-)
diff --git a/dlls/winex11.drv/window.c b/dlls/winex11.drv/window.c
index 93cb7c7..e46a06b 100644
--- a/dlls/winex11.drv/window.c
+++ b/dlls/winex11.drv/window.c
@@ -1956,6 +1956,7 @@ void CDECL X11DRV_ReleaseDC( HWND hwnd, HDC hdc )
escape.drawable_rect = virtual_screen_rect;
SetRect( &escape.dc_rect, 0, 0, virtual_screen_rect.right - virtual_screen_rect.left,
virtual_screen_rect.bottom - virtual_screen_rect.top );
+ OffsetRect( &escape.dc_rect, -escape.drawable_rect.left, -escape.drawable_rect.top );
escape.fbconfig_id = 0;
escape.gl_drawable = 0;
escape.pixmap = 0;
More information about the wine-cvs
mailing list