From 7f79dae109654e9dd7b01892d9c3b82f9981bbc1 Mon Sep 17 00:00:00 2001 From: Dmitry Timoshkov Date: Mon, 13 Sep 2004 18:03:44 +0000 Subject: [PATCH] When DC mapping changes reselect current pen to update physical width. --- dlls/gdi/dc.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/dlls/gdi/dc.c b/dlls/gdi/dc.c index 43e58455dfd..3cd121a7129 100644 --- a/dlls/gdi/dc.c +++ b/dlls/gdi/dc.c @@ -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)); + } }