2003/12/13 08:13:34
[org.ibex.core.git] / src / org / xwt / plat / Java2.java
index 10b003f..8a6ed7c 100644 (file)
@@ -17,17 +17,12 @@ import java.lang.reflect.*;
 public class Java2 extends AWT {
 
     private boolean isJava14 = false;
-    protected boolean _supressDirtyOnResize() {
-        return false;
-        //return (isJava14 && !System.getProperty("os.name", "").equals("Mac OS X"))? false : true;
-    }
 
     public Java2() {
         // disable the focus manager so we can intercept the tab key
         String versionString = System.getProperty("java.version", "");
         int secondDecimal = versionString.substring(versionString.indexOf('.') + 1).indexOf('.');
         if (secondDecimal != -1) versionString = versionString.substring(0, secondDecimal);
-        /*
         double version = Double.parseDouble(versionString);
         if (version >= 1.4) {
             isJava14 = true;
@@ -40,7 +35,6 @@ public class Java2 extends AWT {
                 Log.log(this, e);
             }
         }
-        */
         javax.swing.FocusManager.setCurrentManager(new javax.swing.FocusManager() {
                 public void processKeyEvent(Component focusedComponent, KeyEvent anEvent) { }
                 public void focusPreviousComponent(Component aComponent) { }
@@ -183,8 +177,9 @@ public class Java2 extends AWT {
         private SampleModel sm = null;
         private DataBuffer buf = null;
 
-        public void drawPictureAlphaOnly(Picture source, int dx, int dy, int cx1, int cy1, int cx2, int cy2, int rgb) {
+        public void drawGlyph(Picture source, int dx, int dy, int cx1, int cy1, int cx2, int cy2, int rgb) {
             AWTPicture src = (AWTPicture)source;
+            src.init();
             Graphics2D g2 = (Graphics2D)i.getGraphics();
             g2.setComposite(AlphaComposite.DstOut);
             g2.setClip(cx1, cy1, cx2 - cx1, cy2 - cy1);