Revision: 4027
          http://vexi.svn.sourceforge.net/vexi/?rev=4027&view=rev
Author:   clrg
Date:     2011-02-09 13:53:44 +0000 (Wed, 09 Feb 2011)

Log Message:
-----------
Comment out unused surface variable , extra comments, corrected comments

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

Modified: trunk/org.vexi-core.main/src/main/java/org/vexi/plat/AWT.java
===================================================================
--- trunk/org.vexi-core.main/src/main/java/org/vexi/plat/AWT.java       
2011-02-09 13:51:39 UTC (rev 4026)
+++ trunk/org.vexi-core.main/src/main/java/org/vexi/plat/AWT.java       
2011-02-09 13:53:44 UTC (rev 4027)
@@ -281,8 +281,12 @@
         }
         public AWTPixelBuffer(AWTSurface s) {
             this(Platform.getScreenBounds().width, 
Platform.getScreenBounds().height);
-            this.surface = s;
+//            this.surface = s;
         }
+//        public AWTPixelBuffer(int w, int h, AWTSurface s) {
+//            this(w, h);
+//            this.surface = s;
+//        }
         public AWTPixelBuffer(int w, int h) {
             synchronized(AWTPixelBuffer.class) {
                 if (component == null) {
@@ -373,11 +377,11 @@
             discoverInsets();
             try {
                 window.getGraphics().drawImage(((AWTPixelBuffer)s).i,
-                                  dx + leftInset,
-                                  dy + topInset,
-                                  dx2 + leftInset,
-                                  dy2 + topInset,
-                                  sx, sy, sx + (dx2 - dx), sy + (dy2 - dy), 
null);
+                                  dx + leftInset, dy + topInset,     // 
destination topleft corner
+                                  dx2 + leftInset, dy2 + topInset,   // 
destination bottomright corner
+                                  sx, sy,                            // source 
topleft corner
+                                  sx + (dx2 - dx), sy + (dy2 - dy),  // source 
bottomright corner
+                                  null);
             } catch (NullPointerException npe) { /* FIXME: handle this 
gracefully */ }
         }
         
@@ -574,9 +578,8 @@
                     // FIXME: this does not work on Linux
                     
frame.addComponentListener(((InnerFrame)frame).enforceMinSize);
                 }
-
-            // this is here to catch HeadlessException on jdk1.4
             } catch (java.lang.UnsupportedOperationException e) {
+                // this is here to catch HeadlessException on jdk1.4
                 Log.system.error(this, "Exception thrown creating Surface 
"+(framed?"frame":"window"));
                 Log.system.error(this, e);
             }
@@ -669,6 +672,9 @@
             componentResized(window.getWidth() - leftInset - rightInset, 
window.getHeight() - topInset - bottomInset);
         }
 
+        /** frame/window resize notification with newwidth and newheight
+         *  in relation to the backbuffer i.e. insets already subtracted
+         **/
         public void componentResized(int newwidth, int newheight) {
             // First we fill the expanded part of the buffer before
             // an old (dirty) copy of that buffer part gets painted
@@ -708,8 +714,8 @@
 
         public void keyTyped(KeyEvent k) {
             // REMARK - we are a so called 'passive Input Method' client.
-            // We receive composed text (e.g. asian characters) as key events
-            // where we want to convert them into a keypressed/keyreleased
+            // We receive composed text (e.g. Asian characters) as key events
+            // where we want to convert them into a KeyPressed/KeyReleased
             // Vexi event. Unfortunately we need a way to distinguish between 
             // events due to inputMethods (which we want) and those from the
             // keyboard which are already handled via keyPressed/keyReleased.


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

------------------------------------------------------------------------------
The ultimate all-in-one performance toolkit: Intel(R) Parallel Studio XE:
Pinpoint memory and threading errors before they happen.
Find and fix more than 250 security defects in the development cycle.
Locate bottlenecks in serial and parallel code that limit performance.
http://p.sf.net/sfu/intel-dev2devfeb
_______________________________________________
Vexi-svn mailing list
Vexi-svn@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/vexi-svn

Reply via email to