mirror of
git://source.winehq.org/git/wine.git
synced 2024-10-14 11:17:19 +00:00
When DC mapping changes reselect current pen to update physical
width.
This commit is contained in:
parent
4efa5dd85e
commit
7f79dae109
|
@ -262,10 +262,13 @@ void DC_UpdateXforms( DC *dc )
|
|||
dc->vport2WorldValid = DC_InvertXform( &dc->xformWorld2Vport,
|
||||
&dc->xformVport2World );
|
||||
|
||||
/* Reselect the font back into the dc so that the font size
|
||||
/* Reselect the font and pen back into the dc so that the size
|
||||
gets updated. */
|
||||
if(memcmp(&oldworld2vport, &dc->xformWorld2Vport, sizeof(oldworld2vport)))
|
||||
{
|
||||
SelectObject(dc->hSelf, GetCurrentObject(dc->hSelf, OBJ_FONT));
|
||||
SelectObject(dc->hSelf, GetCurrentObject(dc->hSelf, OBJ_PEN));
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
|
Loading…
Reference in a new issue