Patch for Bug #889
Anthony & Janet Tuininga
tuiningas at shaw.ca
Tue Jul 23 23:12:16 CDT 2002
The following is a patch for bug #889 applied against the latest CVS
snapshot as of today (July 23, 2002). With this patch, the display of a
DirectX game (specifically I have tried Dynomite and Big Money, both
from PopCap) in a window displays properly. Comments are requested.
Anthony
-------------- next part --------------
===================================================================
RCS file: /home/wine/wine/dlls/x11drv/winpos.c,v
retrieving revision 1.45
diff --unified -r1.45 winpos.c
--- winpos.c 21 Jun 2002 22:25:18 -0000 1.45
+++ winpos.c 24 Jul 2002 02:41:40 -0000
@@ -248,7 +248,6 @@
*/
static void expose_window( HWND hwnd, RECT *rect, HRGN rgn, int flags )
{
- POINT offset;
HWND top = 0;
HWND *list;
int i;
@@ -286,17 +285,12 @@
if (!top) top = hwnd;
/* make coords relative to top */
- offset.x = offset.y = 0;
- MapWindowPoints( hwnd, top, &offset, 1 );
-
if (rect)
{
- OffsetRect( rect, offset.x, offset.y );
RedrawWindow( top, rect, 0, flags );
}
else
{
- OffsetRgn( rgn, offset.x, offset.y );
RedrawWindow( top, NULL, rgn, flags );
}
}
More information about the wine-patches
mailing list