Commit d01438bd authored by Dmitry Timoshkov's avatar Dmitry Timoshkov Committed by Alexandre Julliard

gdi32: Do not reselect objects while recording a metafile, that's done at the playing time.

parent 2cf1925e
......@@ -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));
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment