Skip to content

Commit

Permalink
merge
Browse files Browse the repository at this point in the history
  • Loading branch information
bourgesl committed Sep 3, 2018
1 parent 327771c commit 61508a6
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 3 deletions.
1 change: 0 additions & 1 deletion src/main/java/org/marlin/pisces/DRendererContext.java
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,6 @@ static DRendererContext createContext() {

final PathConsumer2DAdapter p2dAdapter = new PathConsumer2DAdapter();


/**
* Constructor
*
Expand Down
18 changes: 16 additions & 2 deletions src/test/java/sun/java2d/marlin/OpenJDKFillBug.java
Original file line number Diff line number Diff line change
Expand Up @@ -109,8 +109,22 @@ public class OpenJDKFillBug {
*/

public static void main(String args[]) {

System.out.println("Testing renderer = " + sun.java2d.pipe.RenderingEngine.getInstance().getClass().getName());
// First display which renderer is tested:
// JDK9 only:
System.setProperty("sun.java2d.renderer.verbose", "true");
System.out.println("Testing renderer: ");
// Other JDK:
String renderer = "undefined";
try {
renderer = sun.java2d.pipe.RenderingEngine.getInstance().getClass().getName();
System.out.println(renderer);
} catch (Throwable th) {
// may fail with JDK9 jigsaw (jake)
if (false) {
System.err.println("Unable to get RenderingEngine.getInstance()");
th.printStackTrace();
}
}

BufferedImage bi = new BufferedImage(801, 1202, BufferedImage.TYPE_INT_ARGB);
Graphics2D g2d = bi.createGraphics();
Expand Down

0 comments on commit 61508a6

Please sign in to comment.