modules/graphics/src/main/java/com/sun/javafx/sg/prism/NGCanvas.java

Print this page

        

@@ -833,10 +833,11 @@
                     // Note that we cannot use fillRect here because SRC
                     // mode does not interact well with antialiasing.
                     // fillQuad does hard edges which matches the concept
                     // of setting adjacent abutting, non-overlapping "pixels"
                     gr.fillQuad(dx1, dy1, dx1+highestPixelScale, dy1+highestPixelScale);
+                    gr.setCompositeMode(CompositeMode.SRC_OVER);
                     break;
                 }
                 case PUT_ARGBPRE_BUF:
                 {
                     float dx1 = buf.getInt();