After we update the mapping mode reselect the current font back into

the dc so that its size is recalculated.
This commit is contained in:
Huw Davies 2003-05-19 23:23:50 +00:00 committed by Alexandre Julliard
parent 4bc46368d5
commit f39f591877
1 changed files with 4 additions and 0 deletions

View File

@ -257,6 +257,10 @@ void DC_UpdateXforms( DC *dc )
/* Create inverse of world-to-viewport transformation */
dc->vport2WorldValid = DC_InvertXform( &dc->xformWorld2Vport,
&dc->xformVport2World );
/* Reselect the font back into the dc so that the font size
gets updated. */
SelectObject(dc->hSelf, GetCurrentObject(dc->hSelf, OBJ_FONT));
}