projects
/
org.ibex.core.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
2004/01/13 12:00:24
[org.ibex.core.git]
/
src
/
org
/
xwt
/
plat
/
X11.java
diff --git
a/src/org/xwt/plat/X11.java
b/src/org/xwt/plat/X11.java
index
6a4d769
..
a770994
100644
(file)
--- a/
src/org/xwt/plat/X11.java
+++ b/
src/org/xwt/plat/X11.java
@@
-1,4
+1,4
@@
-// Copyright 2003 Adam Megacz, see the COPYING file for licensing [LGPL]
+// Copyright 2004 Adam Megacz, see the COPYING file for licensing [LGPL]
package org.xwt.plat;
import gnu.gcj.RawData;
package org.xwt.plat;
import gnu.gcj.RawData;
@@
-46,7
+46,7
@@
public class X11 extends POSIX {
private native void natInit();
public X11() { }
private native void natInit();
public X11() { }
- public void init() {
+ public void postInit() {
natInit();
(new Thread() { public void run() { eventThread(); } }).start();
}
natInit();
(new Thread() { public void run() { eventThread(); } }).start();
}
@@
-62,7
+62,7
@@
public class X11 extends POSIX {
Semaphore waitForCreation = new Semaphore();
public native void setInvisible(boolean i);
Semaphore waitForCreation = new Semaphore();
public native void setInvisible(boolean i);
- public void _setMaximized(boolean m) { if (Log.on) Log.log(this, "X11 can't maximize windows"); }
+ public void _setMaximized(boolean m) { if (Log.on) Log.warn(this, "X11 can't maximize windows"); }
public native void setIcon(Picture p);
public native void _setMinimized(boolean b);
public native void setTitleBarText(String s);
public native void setIcon(Picture p);
public native void _setMinimized(boolean b);
public native void setTitleBarText(String s);
@@
-174,7
+174,7
@@
public class X11 extends POSIX {
cx2 = Math.min(dx + source.width, cx2);
cy2 = Math.min(dy + source.height, cy2);
if (cx1 >= cx2 || cy1 >= cy2) return;
cx2 = Math.min(dx + source.width, cx2);
cy2 = Math.min(dy + source.height, cy2);
if (cx1 >= cx2 || cy1 >= cy2) return;
- slowDrawPicture(((DefaultGlyph)source).getPicture(), dx, dy, cx1, cy1, cx2, cy2, rgb, true);
+ slowDrawPicture(((Platform.DefaultGlyph)source).getPicture(), dx, dy, cx1, cy1, cx2, cy2, rgb, true);
}
public void drawPicture(Picture source, int dx, int dy, int cx1, int cy1, int cx2, int cy2) {
cx1 = Math.max(dx, cx1);
}
public void drawPicture(Picture source, int dx, int dy, int cx1, int cy1, int cx2, int cy2) {
cx1 = Math.max(dx, cx1);