From d01438bd538ef7a69ea7ad773579523c876fe1d6 Mon Sep 17 00:00:00 2001 From: Dmitry Timoshkov Date: Mon, 28 Apr 2008 16:01:40 +0900 Subject: [PATCH] gdi32: Do not reselect objects while recording a metafile, that's done at the playing time. --- dlls/gdi32/dc.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/dlls/gdi32/dc.c b/dlls/gdi32/dc.c index cb4de19cff7..9baa7e4fcc1 100644 --- a/dlls/gdi32/dc.c +++ b/dlls/gdi32/dc.c @@ -315,8 +315,9 @@ 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) + if ((oldworld2vport.eM11 != dc->xformWorld2Vport.eM11 || + oldworld2vport.eM22 != dc->xformWorld2Vport.eM22) && + !GdiIsMetaFileDC(dc->hSelf)) { SelectObject(dc->hSelf, GetCurrentObject(dc->hSelf, OBJ_FONT)); SelectObject(dc->hSelf, GetCurrentObject(dc->hSelf, OBJ_PEN)); -- 2.11.4.GIT