Skip to content

Instantly share code, notes, and snippets.

@tveimo
Last active August 29, 2015 14:24
Show Gist options
  • Save tveimo/5677ccc024afe115d4bc to your computer and use it in GitHub Desktop.
Save tveimo/5677ccc024afe115d4bc to your computer and use it in GitHub Desktop.
patch openjdk 9 b70 to support subpixel rendering on translucent surfaces
--- 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