Commit 3cbd9639 authored by Dmitry Timoshkov's avatar Dmitry Timoshkov Committed by Alexandre Julliard

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

parent c531e2ab
...@@ -315,7 +315,8 @@ void DC_UpdateXforms( DC *dc ) ...@@ -315,7 +315,8 @@ void DC_UpdateXforms( DC *dc )
/* Reselect the font and pen back into the dc so that the size /* Reselect the font and pen back into the dc so that the size
gets updated. */ 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_FONT));
SelectObject(dc->hSelf, GetCurrentObject(dc->hSelf, OBJ_PEN)); SelectObject(dc->hSelf, GetCurrentObject(dc->hSelf, OBJ_PEN));
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment