2003/10/16 05:39:20
[org.ibex.core.git] / src / org / xwt / plat / Darwin.java
index 8da005c..a3e4141 100644 (file)
@@ -275,6 +275,7 @@ public class Darwin extends POSIX {
         private native void reshape(int w, int h);
         // blit_lock is assumed to be held
         public void needsReshape() { needsReshape = true; }
+
         public native void natDispose();
     }
 
@@ -321,6 +322,12 @@ public class Darwin extends POSIX {
         else
             return /*new QZCarbonPicture(data,w,h);*/ null;
     }
+    protected Picture _createAlphaOnlyPicture(byte[] data, int w, int h) {
+        if(openGL != null)
+            return openGL.createAlphaOnlyPicture(data,w,h);
+        else
+            return super.createAlphaOnlyPicture(data,w,h);
+    }
     
     /* A message that is sent through the carbon event queue */
     private static abstract class CarbonMessage {