Dmitry Timoshkov : Revert "gdi32: Reselect objects into the DC only if scaling factors change.".

Alexandre Julliard julliard at winehq.org
Mon Jul 21 08:51:55 CDT 2008


Module: wine
Branch: master
Commit: 02631adc8acd0d56f63bc73355666f78d9b3e157
URL:    http://source.winehq.org/git/wine.git/?a=commit;h=02631adc8acd0d56f63bc73355666f78d9b3e157

Author: Dmitry Timoshkov <dmitry at codeweavers.com>
Date:   Mon Jul 21 17:15:55 2008 +0900

Revert "gdi32: Reselect objects into the DC only if scaling factors change.".

This reverts commit 3cbd9639da103bb6b5dcd7b78b4fc72edca1b765.

---

 dlls/gdi32/dc.c |    5 ++---
 1 files changed, 2 insertions(+), 3 deletions(-)

diff --git a/dlls/gdi32/dc.c b/dlls/gdi32/dc.c
index 801a3fd..8e4601d 100644
--- a/dlls/gdi32/dc.c
+++ b/dlls/gdi32/dc.c
@@ -315,9 +315,8 @@ void DC_UpdateXforms( DC *dc )
 
     /* Reselect the font and pen back into the dc so that the size
        gets updated. */
-    if ((oldworld2vport.eM11 != dc->xformWorld2Vport.eM11 ||
-         oldworld2vport.eM22 != dc->xformWorld2Vport.eM22) &&
-         !GdiIsMetaFileDC(dc->hSelf))
+    if (memcmp(&oldworld2vport, &dc->xformWorld2Vport, sizeof(oldworld2vport)) &&
+        !GdiIsMetaFileDC(dc->hSelf))
     {
         SelectObject(dc->hSelf, GetCurrentObject(dc->hSelf, OBJ_FONT));
         SelectObject(dc->hSelf, GetCurrentObject(dc->hSelf, OBJ_PEN));




More information about the wine-cvs mailing list