Revision: 4052
          http://vexi.svn.sourceforge.net/vexi/?rev=4052&view=rev
Author:   clrg
Date:     2011-03-17 00:11:07 +0000 (Thu, 17 Mar 2011)

Log Message:
-----------
Attempt to fix #37 exceptions related to BufferStrategy implementation

Modified Paths:
--------------
    trunk/org.vexi-core.main/src/main/java/org/vexi/plat/Swing.java

Modified: trunk/org.vexi-core.main/src/main/java/org/vexi/plat/Swing.java
===================================================================
--- trunk/org.vexi-core.main/src/main/java/org/vexi/plat/Swing.java     
2011-03-16 12:08:13 UTC (rev 4051)
+++ trunk/org.vexi-core.main/src/main/java/org/vexi/plat/Swing.java     
2011-03-17 00:11:07 UTC (rev 4052)
@@ -846,11 +846,11 @@
         // IMPORTANT: makeVisible must be called before render()
         // to ensure that our peer has been created
         public void makeVisible(boolean b) {
-            window.setVisible(b);
             // initialize Swing's double buffering otherwise certain actions
             // (notably resizing frames) will not be done smoothly
-            // NB: this must be called after setVisible()
+            // NB: this must be called before setVisible(true)
             if (b) window.createBufferStrategy(2);
+            window.setVisible(b);
         }
         
         public void _dispose() {


This was sent by the SourceForge.net collaborative development platform, the 
world's largest Open Source development site.

------------------------------------------------------------------------------
Colocation vs. Managed Hosting
A question and answer guide to determining the best fit
for your organization - today and in the future.
http://p.sf.net/sfu/internap-sfd2d
_______________________________________________
Vexi-svn mailing list
Vexi-svn@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/vexi-svn

Reply via email to