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

This reverts commit 3cbd9639da.
This commit is contained in:
Dmitry Timoshkov 2008-07-21 17:15:55 +09:00 committed by Alexandre Julliard
parent 7976d993f5
commit 02631adc8a
1 changed files with 2 additions and 3 deletions

View File

@ -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));