Last active
August 29, 2015 14:24
-
-
Save tveimo/5677ccc024afe115d4bc to your computer and use it in GitHub Desktop.
patch openjdk 9 b70 to support subpixel rendering on translucent surfaces
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
--- src/java.desktop/share/classes/sun/java2d/opengl/OGLSurfaceData.java-orig 2015-07-02 17:37:58.000000000 +1000 | |
+++ src/java.desktop/share/classes/sun/java2d/opengl/OGLSurfaceData.java 2015-07-02 17:38:59.000000000 +1000 | |
@@ -412,7 +412,7 @@ | |
public boolean canRenderLCDText(SunGraphics2D sg2d) { | |
return | |
graphicsConfig.isCapPresent(CAPS_EXT_LCD_SHADER) && | |
- sg2d.surfaceData.getTransparency() == Transparency.OPAQUE && | |
+/* sg2d.surfaceData.getTransparency() == Transparency.OPAQUE && */ | |
sg2d.paintState <= SunGraphics2D.PAINT_OPAQUECOLOR && | |
(sg2d.compositeState <= SunGraphics2D.COMP_ISCOPY || | |
(sg2d.compositeState <= SunGraphics2D.COMP_ALPHA && canHandleComposite(sg2d.composite))); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment