Compare commits

...

1 Commits
1692 ... 954

Author SHA1 Message Date
Alexey Ushakov
22e0ab6161 JBR-1929 Improve rendering of San Francisco font of macOS Catalina
Reverting gamma correction because of rendering artifacts in the light theme

This reverts commit 5016db51

(cherry picked from commit c1d644a004)
2020-06-19 18:59:37 +03:00

View File

@@ -282,13 +282,7 @@ CGGI_CopyImageFromCanvasToRGBInfo(CGGI_GlyphCanvas *canvas, GlyphInfo *info)
static inline UInt8
CGGI_ConvertBWPixelToByteGray(UInt32 p)
{
UInt8* lut = getReverseGammaLut();
UInt8 r = lut[0xFF - (p >> 24 & 0xFF)];
UInt8 g = lut[0xFF - (p >> 16 & 0xFF)];
UInt8 b = lut[0xFF - (p >> 8 & 0xFF)];
return ((r + g + b) / 3);
return 0xFF - (((p >> 24 & 0xFF) + (p >> 16 & 0xFF) + (p >> 8 & 0xFF)) / 3);
}
static void