Revision: 4048
          http://vexi.svn.sourceforge.net/vexi/?rev=4048&view=rev
Author:   clrg
Date:     2011-03-15 12:53:21 +0000 (Tue, 15 Mar 2011)

Log Message:
-----------
Attempt to fix #36
- only call createBufferStrategy when displaying a frame/window
- also call it on window (was just for frames before)

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-11 04:42:32 UTC (rev 4047)
+++ trunk/org.vexi-core.main/src/main/java/org/vexi/plat/Swing.java     
2011-03-15 12:53:21 UTC (rev 4048)
@@ -850,7 +850,7 @@
             // initialize Swing's double buffering otherwise certain actions
             // (notably resizing frames) will not be done smoothly
             // NB: this must be called after setVisible()
-            if (frame!=null) frame.createBufferStrategy(2);
+            if (b) window.createBufferStrategy(2);
         }
         
         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