2002/10/04 02:09:25
authormegacz <megacz@xwt.org>
Fri, 30 Jan 2004 06:50:44 +0000 (06:50 +0000)
committermegacz <megacz@xwt.org>
Fri, 30 Jan 2004 06:50:44 +0000 (06:50 +0000)
darcs-hash:20040130065044-2ba56-07cedff7ca2914b422e5d8735e0f93e60eb79291.gz

src/org/xwt/Main.java
src/org/xwt/PNG.java
src/org/xwt/Platform.java
src/org/xwt/Proxy.java
src/org/xwt/XWF.java
src/org/xwt/plat/AWT.java

index 294fd9e..eaa4ab8 100644 (file)
@@ -118,11 +118,11 @@ public class Main extends Applet {
             ThreadMessage.newthread(new JSObject.JSFunction() {
                     public Object call(Context cx, Scriptable thisObj, Scriptable ctorObj, Object[] arg) throws JavaScriptException {
                         new Box(initialTemplate_f, null);
-                       doneInitializing = true;
-                       if (Surface.allSurfaces.size() == 0) {
-                           Log.log(this, "exiting because all surfaces are gone");
-                           Platform.exit();
-                       }
+            doneInitializing = true;
+            if (Surface.allSurfaces.size() == 0) {
+                Log.log(this, "exiting because all surfaces are gone");
+                Platform.exit();
+            }
                         return null;
                     }
                 });
index 03b05f9..801a3f2 100644 (file)
@@ -164,7 +164,7 @@ public class PNG implements ImageDecoder {
             inputStream.skip(chunkLength);
             return;
         }
-               int len = palette.length;
+        int len = palette.length;
         if (colorType == 3) {
             transparency = true;
 
index 0963cd5..cbae095 100644 (file)
@@ -66,9 +66,9 @@ public class Platform {
             else if (version.startsWith("1.4")) platform_class = "Java14";
             else if (!version.startsWith("1.0") && !version.startsWith("1.1")) platform_class = "Java12";
 
-           // Disable 2d hardware acceleration on Jaguar
-           if (os_name.equals("Mac OS X") && os_version.equals("10.2"))
-               System.setProperty("com.apple.hwaccel", "false");
+        // Disable 2d hardware acceleration on Jaguar
+        if (os_name.equals("Mac OS X") && os_version.equals("10.2"))
+        System.setProperty("com.apple.hwaccel", "false");
 
             if (platform_class != null) {
                 platform = (Platform)Class.forName("org.xwt.plat." + platform_class).newInstance();
index 83950aa..632034e 100644 (file)
@@ -126,13 +126,13 @@ public class Proxy {
                 if (e instanceof EcmaError) Log.log(HTTP.class, ((EcmaError)e).getMessage() + " at " +
                                                     ((EcmaError)e).getSourceName() + ":" + ((EcmaError)e).getLineNumber());
                 else if (e instanceof JavaScriptException) {
-                   try {
-                       XWT.recursivePrintObject.call(Context.enter(), null, null, new Object[] {
-                           ((JavaScriptException)e).getValue() });
-                   } catch (Exception e2) {
-                       Log.log(Platform.class, e);
-                   }
-               }
+            try {
+            XWT.recursivePrintObject.call(Context.enter(), null, null, new Object[] {
+                ((JavaScriptException)e).getValue() });
+            } catch (Exception e2) {
+            Log.log(Platform.class, e);
+            }
+        }
                 else Log.log(Platform.class, e);
             }
             return null;
index c3d43a2..da6f57b 100644 (file)
@@ -79,9 +79,9 @@ public class XWF {
         for(int i=0; i<text.length(); i++) {
             int c = "!\"#$%&'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\\]^_`abcdefghijklmnopqrstuvwxyz{|}~".indexOf(text.charAt(i));
             if (c == -1 || metrics[c] == null) {
-               left += metrics[64] != null ? metrics[64][4] : 10;
-               continue;
-           }
+        left += metrics[64] != null ? metrics[64][4] : 10;
+        continue;
+        }
             buf.drawPicture(pg,
                             left,
                             y - (metrics[c][5] - metrics[c][2]),
index ad67bc0..46bb5f6 100644 (file)
@@ -327,7 +327,7 @@ public class AWT extends Platform {
         public void windowDeiconified(WindowEvent e) { dirty(0, 0, width, height); Minimized(false); }
         public void windowActivated(WindowEvent e) { Focused(true); }
         public void windowDeactivated(WindowEvent e) { Focused(false); }
-       public void componentMoved(ComponentEvent e) { PosChange(window.getLocation().x + insets.left, window.getLocation().y + insets.top); }
+    public void componentMoved(ComponentEvent e) { PosChange(window.getLocation().x + insets.left, window.getLocation().y + insets.top); }
 
         public void componentResized(ComponentEvent e) {
             // we have to periodically do this; I don't know why