Dmitry Timoshkov : gdi32: Reselect objects into the DC only if scaling factors change.
Alexandre Julliard
julliard at winehq.org
Wed Apr 23 07:59:34 CDT 2008
Module: wine
Branch: master
Commit: 3cbd9639da103bb6b5dcd7b78b4fc72edca1b765
URL: http://source.winehq.org/git/wine.git/?a=commit;h=3cbd9639da103bb6b5dcd7b78b4fc72edca1b765
Author: Dmitry Timoshkov <dmitry at codeweavers.com>
Date: Wed Apr 23 17:24:53 2008 +0900
gdi32: Reselect objects into the DC only if scaling factors change.
---
dlls/gdi32/dc.c | 3 ++-
1 files changed, 2 insertions(+), 1 deletions(-)
diff --git a/dlls/gdi32/dc.c b/dlls/gdi32/dc.c
index debbde8..cb4de19 100644
--- a/dlls/gdi32/dc.c
+++ b/dlls/gdi32/dc.c
@@ -315,7 +315,8 @@ void DC_UpdateXforms( DC *dc )
/* Reselect the font and pen back into the dc so that the size
gets updated. */
- if(memcmp(&oldworld2vport, &dc->xformWorld2Vport, sizeof(oldworld2vport)))
+ if (oldworld2vport.eM11 != dc->xformWorld2Vport.eM11 ||
+ oldworld2vport.eM22 != dc->xformWorld2Vport.eM22)
{
SelectObject(dc->hSelf, GetCurrentObject(dc->hSelf, OBJ_FONT));
SelectObject(dc->hSelf, GetCurrentObject(dc->hSelf, OBJ_PEN));
More information about the wine-cvs
mailing list