gdi32: Reselect objects into the DC only if scaling factors change.
This commit is contained in:
parent
c531e2abdb
commit
3cbd9639da
|
@ -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));
|
||||
|
|
Loading…
Reference in New Issue