summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorscuri <scuri>2010-08-03 20:11:54 +0000
committerscuri <scuri>2010-08-03 20:11:54 +0000
commitf25212341cad459f4f8020b6c2d61dd5a61030dd (patch)
tree4049603e5e77035a1e86ebdfd84e640890105ab6
parentab3a6acf6a4b77b065fe5ac9e5ec563aac5557d3 (diff)
*** empty log message ***
-rw-r--r--src/gdiplus/cdwinp.cpp10
1 files changed, 7 insertions, 3 deletions
diff --git a/src/gdiplus/cdwinp.cpp b/src/gdiplus/cdwinp.cpp
index 013cc9a..db09cd6 100644
--- a/src/gdiplus/cdwinp.cpp
+++ b/src/gdiplus/cdwinp.cpp
@@ -2592,12 +2592,16 @@ static void set_aa_attrib(cdCtxCanvas* ctxcanvas, char* data)
ctxcanvas->graphics->SetInterpolationMode(InterpolationModeBilinear);
ctxcanvas->graphics->SetSmoothingMode(SmoothingModeAntiAlias);
if (Is_WinXP_or_WinSrv03())
+ /* Microsoft Windows XP and Windows Server 2003 only:
+ ClearType rendering is supported only on Windows XP and Windows Server 2003.
+ Therefore, TextRenderingHintClearTypeGridFit is ignored on other operating systems. */
ctxcanvas->graphics->SetTextRenderingHint(TextRenderingHintClearTypeGridFit);
else
ctxcanvas->graphics->SetTextRenderingHint(TextRenderingHintAntiAliasGridFit);
-/* ctxcanvas->graphics->SetPixelOffsetMode(PixelOffsetModeHalf);
- Do NOT set PixelOffsetMode because some graphic objects move their position and size.
-*/
+
+ /* Do NOT set PixelOffsetMode because some graphic objects move their position and size.
+ ctxcanvas->graphics->SetPixelOffsetMode(PixelOffsetModeHalf); */
+
ctxcanvas->antialias = 1;
}
}