2003/10/19 02:21:59
[org.ibex.core.git] / src / org / xwt / plat / Win32.java
index ba99a8e..1bb0bdf 100644 (file)
@@ -263,9 +263,16 @@ public class Win32 extends GCJ {
 
         public native void setClip(int x, int y, int x2, int y2);
         public native void fillRect(int x, int y, int x2, int y2, int color);
-        public native void drawPicture(Picture source, int dx1, int dy1, int dx2, int dy2, int sx1, int sy1, int sx2, int sy2);
-        public native void drawPictureAlphaOnly(Picture source, int dx1, int dy1, int dx2, int dy2,
-                                                int sx1, int sy1, int sx2, int sy2, int rgb);
+        public void drawPicture(Picture source, int dx1, int dy1, int dx2, int dy2, int sx1, int sy1, int sx2, int sy2) {
+            drawPicture(source, dx1, dy1, dx2, dy2, sx1, sy1, sx2, sy2, 0, false);
+        }
+        public void drawPictureAlphaOnly(Picture source, int dx1, int dy1, int dx2, int dy2,
+                                         int sx1, int sy1, int sx2, int sy2, int rgb) {
+            drawPicture(source, dx1, dy1, dx2, dy2, sx1, sy1, sx2, sy2, rgb, true);
+        }
+        public native void drawPicture(Picture source, int dx1, int dy1, int dx2, int dy2, int sx1, int sy1, int sx2, int sy2,
+                                       int rgb, boolean alphaOnly);
+
         public native void finalize();
         public void drawPicture(Picture source, int x, int y) {
             drawPicture(source, x, y, x + source.getWidth(), y + source.getHeight(), 0, 0, source.getWidth(), source.getHeight());