From badc13213bcf952830afe606ba71683540aba5a3 Mon Sep 17 00:00:00 2001 From: Sven Gothel Date: Sun, 8 Sep 2013 19:51:21 +0200 Subject: AWTPrintLifecycle: Add DEFAULT_PRINT_TILE_SIZE (512); Remove unused imports. --- src/newt/classes/com/jogamp/newt/awt/NewtCanvasAWT.java | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'src/newt') diff --git a/src/newt/classes/com/jogamp/newt/awt/NewtCanvasAWT.java b/src/newt/classes/com/jogamp/newt/awt/NewtCanvasAWT.java index 2127c4096..02bc17c79 100644 --- a/src/newt/classes/com/jogamp/newt/awt/NewtCanvasAWT.java +++ b/src/newt/classes/com/jogamp/newt/awt/NewtCanvasAWT.java @@ -454,7 +454,6 @@ public class NewtCanvasAWT extends java.awt.Canvas implements WindowClosingProto } } - private static final int PRINT_TILE_SIZE = 512; private volatile boolean printActive = false; private boolean printUseAA = false; private GLAnimatorControl printAnimator = null; @@ -528,7 +527,7 @@ public class NewtCanvasAWT extends java.awt.Canvas implements WindowClosingProto } } final GLDrawableFactory factory = GLDrawableFactory.getFactory(caps.getGLProfile()); - printGLAD = factory.createOffscreenAutoDrawable(null, caps, null, PRINT_TILE_SIZE, PRINT_TILE_SIZE, null); + printGLAD = factory.createOffscreenAutoDrawable(null, caps, null, DEFAULT_PRINT_TILE_SIZE, DEFAULT_PRINT_TILE_SIZE, null); GLDrawableUtil.swapGLContextAndAllGLEventListener(glad, printGLAD); } -- cgit v1.2.3