aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSven Gothel <[email protected]>2011-09-02 02:42:25 +0200
committerSven Gothel <[email protected]>2011-09-02 02:42:25 +0200
commit800747a6f474966e77cc717aac71a34a3b009d20 (patch)
treedacd2b937ad60049b1f1187a9473a1e87c7a1d21
parent22ff61dab242305bdb91c7c70f9e03291fb5d869 (diff)
TestParenting02NEWT: Don't move parent window -> lots of WM fighting / flickering
-rw-r--r--src/test/com/jogamp/opengl/test/junit/newt/parenting/TestParenting02NEWT.java6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/test/com/jogamp/opengl/test/junit/newt/parenting/TestParenting02NEWT.java b/src/test/com/jogamp/opengl/test/junit/newt/parenting/TestParenting02NEWT.java
index fc079f357..13aad0c25 100644
--- a/src/test/com/jogamp/opengl/test/junit/newt/parenting/TestParenting02NEWT.java
+++ b/src/test/com/jogamp/opengl/test/junit/newt/parenting/TestParenting02NEWT.java
@@ -45,6 +45,8 @@ import java.io.IOException;
import com.jogamp.opengl.test.junit.util.*;
import com.jogamp.opengl.test.junit.jogl.demos.es2.RedSquareES2;
import com.jogamp.opengl.test.junit.jogl.demos.es2.GearsES2;
+// import com.jogamp.opengl.test.junit.jogl.demos.es1.RedSquareES1;
+// import com.jogamp.opengl.test.junit.jogl.demos.es1.GearsES1;
public class TestParenting02NEWT extends UITestCase {
static int width, height;
@@ -155,12 +157,12 @@ public class TestParenting02NEWT extends UITestCase {
while (duration>0 && !shouldQuit) {
glWindow1.display();
glWindow2.display();
- Thread.sleep(step);
duration -= step;
x += 1;
y += 1;
- glWindow1.setPosition(x,y);
+ // glWindow1.setPosition(x,y);
glWindow2.setPosition(glWindow1.getWidth()/2,glWindow1.getHeight()/2-y);
+ Thread.sleep(step);
while( null != ( event = (NEWTEvent) eventFifo.get() ) ) {
Window source = (Window) event.getSource();