From 6c325e065eb458510c01999804a54c5c3e94e7d6 Mon Sep 17 00:00:00 2001 From: megacz Date: Fri, 30 Jan 2004 07:38:58 +0000 Subject: [PATCH] 2003/10/01 21:44:33 darcs-hash:20040130073858-2ba56-f37378e7755279c4073ba0a652aba28e75b293b3.gz --- src/org/xwt/plat/OpenGL.java | 6 ++++-- src/org/xwt/plat/Win32.java | 8 ++++++-- src/org/xwt/plat/X11.java | 6 ++++-- 3 files changed, 14 insertions(+), 6 deletions(-) diff --git a/src/org/xwt/plat/OpenGL.java b/src/org/xwt/plat/OpenGL.java index 96d701d..5367cb6 100644 --- a/src/org/xwt/plat/OpenGL.java +++ b/src/org/xwt/plat/OpenGL.java @@ -80,8 +80,10 @@ abstract class OpenGL { //System.out.println("drawString(): " + text); } - 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 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 drawPictureAlphaOnly(Picture source, int dx1, int dy1, int dx2, int dy2, + int sx1, int sy1, int sx2, int sy2, int rgb) { } public void drawPicture(org.xwt.Picture source, int x, int y) { activateContext(); diff --git a/src/org/xwt/plat/Win32.java b/src/org/xwt/plat/Win32.java index ba99a8e..218383d 100644 --- a/src/org/xwt/plat/Win32.java +++ b/src/org/xwt/plat/Win32.java @@ -264,8 +264,12 @@ 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 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 drawPictureAlphaOnly(Picture source, int dx1, int dy1, int dx2, int dy2, + int sx1, int sy1, int sx2, int sy2, int rgb) { } + 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()); diff --git a/src/org/xwt/plat/X11.java b/src/org/xwt/plat/X11.java index 925593b..6d94727 100644 --- a/src/org/xwt/plat/X11.java +++ b/src/org/xwt/plat/X11.java @@ -175,8 +175,10 @@ public class X11 extends POSIX { cliph = y2 - y; if (cliph < 0) cliph = 0; } - 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 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 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) { if (!(dx2 - dx1 != sx2 - sx1 || dy2 - dy1 != sy2 - sy1) && ((X11Picture)source).doublebuf != null) -- 1.7.10.4