Kaydet (Commit) ff51dcfc authored tarafından Jan Holesovsky's avatar Jan Holesovsky

opengl dr.memory: DC that contains selected object being deleted.

Change-Id: Id9922606207c2c45ed982b6ee4b46388ea660ea5
üst 5623a63b
......@@ -198,7 +198,7 @@ void WinLayout::DrawText(SalGraphics& rGraphics) const
// setup the hidden DC with black color and white background, we will
// use the result of the text drawing later as a mask only
SelectFont(aDC.getCompatibleHDC(), mhFont);
HFONT hOrigFont = SelectFont(aDC.getCompatibleHDC(), mhFont);
SetTextColor(aDC.getCompatibleHDC(), RGB(0, 0, 0));
SetBkColor(aDC.getCompatibleHDC(), RGB(255, 255, 255));
......@@ -223,6 +223,8 @@ void WinLayout::DrawText(SalGraphics& rGraphics) const
pImpl->PostDraw();
}
SelectFont(aDC.getCompatibleHDC(), hOrigFont);
}
}
......
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