From 6b79268326f663661c7dbb7fbf47d61f94f4fbea Mon Sep 17 00:00:00 2001 From: Kevin Rushforth Date: Tue, 7 Nov 2006 16:21:20 +0000 Subject: Issue 131: Fixed a startup freeze problem with JCanvas3D git-svn-id: https://svn.java.net/svn/j3d-core~svn/trunk@741 ba19aa83-45c5-6ac9-afd3-db810772062c --- src/classes/share/javax/media/j3d/Canvas3D.java | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'src/classes') diff --git a/src/classes/share/javax/media/j3d/Canvas3D.java b/src/classes/share/javax/media/j3d/Canvas3D.java index 0758803..f617565 100644 --- a/src/classes/share/javax/media/j3d/Canvas3D.java +++ b/src/classes/share/javax/media/j3d/Canvas3D.java @@ -1317,6 +1317,13 @@ public class Canvas3D extends Canvas { view.universe.checkForEnableEvents(); } + // Issue 131: Call redraw() if this is an auto-off-screen Canvas3D, + // so it will start up correctly. It isn't necessary to do this for + // on-screen Canvas3Ds because redraw() will be called when we + // get the first paint(). + if (offScreen) { + redraw(); + } } // When this canvas is removed a frame, this notification gets called. We -- cgit v1.2.3