aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorNeil Hodgson <nyamatongwe@gmail.com>2015-04-10 00:08:09 +1000
committerNeil Hodgson <nyamatongwe@gmail.com>2015-04-10 00:08:09 +1000
commit4b3f565e2a239761d8926cc80d4b48c6f64bb6f2 (patch)
tree41b7057d7c4d00e72c9f4adcf93b2c6d90da9bc8
parentdf13ddecf7feedb6613dcf2215490ef658e5f6c9 (diff)
downloadscintilla-mirror-4b3f565e2a239761d8926cc80d4b48c6f64bb6f2.tar.gz
Since OS X 10.5 no longer supported, remove code that only called
CGContextSetAllowsFontSubpixelPositioning when available.
-rw-r--r--cocoa/ScintillaCocoa.mm18
1 files changed, 6 insertions, 12 deletions
diff --git a/cocoa/ScintillaCocoa.mm b/cocoa/ScintillaCocoa.mm
index 69a8a4c14..e3d0369b6 100644
--- a/cocoa/ScintillaCocoa.mm
+++ b/cocoa/ScintillaCocoa.mm
@@ -1741,12 +1741,9 @@ bool ScintillaCocoa::SyncPaint(void* gc, PRectangle rc)
vs.extraFontFlag != SC_EFF_QUALITY_NON_ANTIALIASED);
CGContextSetAllowsFontSmoothing((CGContextRef)gc,
vs.extraFontFlag == SC_EFF_QUALITY_LCD_OPTIMIZED);
-#if MAC_OS_X_VERSION_MAX_ALLOWED > MAC_OS_X_VERSION_10_5
- if (CGContextSetAllowsFontSubpixelPositioning != NULL)
- CGContextSetAllowsFontSubpixelPositioning((CGContextRef)gc,
- vs.extraFontFlag == SC_EFF_QUALITY_DEFAULT ||
- vs.extraFontFlag == SC_EFF_QUALITY_LCD_OPTIMIZED);
-#endif
+ CGContextSetAllowsFontSubpixelPositioning((CGContextRef)gc,
+ vs.extraFontFlag == SC_EFF_QUALITY_DEFAULT ||
+ vs.extraFontFlag == SC_EFF_QUALITY_LCD_OPTIMIZED);
sw->Init(gc, wMain.GetID());
Paint(sw, rc);
succeeded = paintState != paintAbandoned;
@@ -1780,12 +1777,9 @@ void ScintillaCocoa::PaintMargin(NSRect aRect)
vs.extraFontFlag != SC_EFF_QUALITY_NON_ANTIALIASED);
CGContextSetAllowsFontSmoothing(gc,
vs.extraFontFlag == SC_EFF_QUALITY_LCD_OPTIMIZED);
-#if MAC_OS_X_VERSION_MAX_ALLOWED > MAC_OS_X_VERSION_10_5
- if (CGContextSetAllowsFontSubpixelPositioning != NULL)
- CGContextSetAllowsFontSubpixelPositioning(gc,
- vs.extraFontFlag == SC_EFF_QUALITY_DEFAULT ||
- vs.extraFontFlag == SC_EFF_QUALITY_LCD_OPTIMIZED);
-#endif
+ CGContextSetAllowsFontSubpixelPositioning(gc,
+ vs.extraFontFlag == SC_EFF_QUALITY_DEFAULT ||
+ vs.extraFontFlag == SC_EFF_QUALITY_LCD_OPTIMIZED);
sw->Init(gc, wMargin.GetID());
PaintSelMargin(sw, rc);
sw->Release();