Prechádzať zdrojové kódy

[SKIA] There is no need to disable LcdRenderText for regular opacity, it's needed only for RTB and layers

Nikita Tsukanov 8 rokov pred
rodič
commit
c3e36e9339

+ 1 - 1
src/Skia/Avalonia.Skia/FormattedTextImpl.cs

@@ -285,7 +285,7 @@ namespace Avalonia.Skia
                 return;
             curr?.Dispose();
             curr = wrapper.ApplyTo(paint);
-            paint.LcdRenderText = canUseLcdRendering && paint.Color.Alpha == 255;
+            paint.LcdRenderText = canUseLcdRendering;
         }
 
         private static bool IsBreakChar(char c)