[commit] r1356 - trunk/GME/Gme

GMESRC Repository Notifications gme-commit at list.isis.vanderbilt.edu
Tue Jun 14 16:23:40 CDT 2011


Author: ksmyth
Date: Tue Jun 14 16:23:40 2011
New Revision: 1356

Log:
Fix for GME-339 didnt properly set smoothing mode or text hinting

Modified:
   trunk/GME/Gme/GMEView.cpp

Modified: trunk/GME/Gme/GMEView.cpp
==============================================================================
--- trunk/GME/Gme/GMEView.cpp	Tue Jun 14 16:23:02 2011	(r1355)
+++ trunk/GME/Gme/GMEView.cpp	Tue Jun 14 16:23:40 2011	(r1356)
@@ -833,6 +833,9 @@
 					// a modified pDC makes old-style (i.e. no DrawEx) decorators render incorrectly (e.g. when the scrollbar is scrolled)
 					gdip.~Graphics();
 					::new ((void*)&gdip) Gdiplus::Graphics(pDC->m_hDC);
+					gdip.SetPageUnit(Gdiplus::UnitPixel);
+					gdip.SetSmoothingMode(m_eEdgeAntiAlias);
+					gdip.SetTextRenderingHint(m_eFontAntiAlias);
 					fco->Draw(pDC->m_hDC, &gdip);
 				}
 			}


More information about the gme-commit mailing list