Skip to content
Snippets Groups Projects
Commit 5480a22f authored by George Nachman's avatar George Nachman
Browse files

Fix a bug where the retina-only setting for thin strokes was not respected. Issue 5156.

parent a747cd41
No related branches found
No related tags found
No related merge requests found
Loading
Loading
@@ -1130,7 +1130,7 @@ typedef struct iTermTextColorContext {
int savedFontSmoothingStyle = 0;
const CGFloat *components = CGColorGetComponents(color);
const CGFloat brightness = PerceivedBrightness(components[0], components[1], components[2]);
BOOL useThinStrokes = [self thinStrokes] && ([backgroundColor brightnessComponent] < brightness);
BOOL useThinStrokes = [self useThinStrokes] && ([backgroundColor brightnessComponent] < brightness);
if (useThinStrokes) {
CGContextSetShouldSmoothFonts(ctx, YES);
// This seems to be available at least on 10.8 and later. The only reference to it is in
Loading
Loading
@@ -1273,7 +1273,7 @@ typedef struct iTermTextColorContext {
int savedFontSmoothingStyle = 0;
const CGFloat *components = CGColorGetComponents(cgColor);
const CGFloat brightness = PerceivedBrightness(components[0], components[1], components[2]);
BOOL useThinStrokes = [self thinStrokes] && ([backgroundColor brightnessComponent] < brightness);
BOOL useThinStrokes = [self useThinStrokes] && ([backgroundColor brightnessComponent] < brightness);
if (useThinStrokes) {
CGContextSetShouldSmoothFonts(cgContext, YES);
// This seems to be available at least on 10.8 and later. The only reference to it is in
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment