-// builtin.xwar /////////////////////////////////////////////////////////
-
-extern unsigned char builtin_xwar[];
-extern int builtin_xwar_length;
-
-java::io::InputStream* org::xwt::plat::GCJ::_getBuiltinInputStream() {
- jbyteArray ret = JvNewByteArray(builtin_xwar_length);
- memcpy(elements(ret), builtin_xwar, builtin_xwar_length);
- return new java::io::ByteArrayInputStream(ret);
-}
-
-
-
// JPEG ////////////////////////////////////////////////////////////////
#define INPUT_BUF_SIZE (1024 * 16)
private static Class c9 = gnu.java.locale.Calendar_en_US.class;
protected org.xwt.Weak _getWeak(Object o) { return new Java2Weak(o); }
- protected native InputStream _getBuiltinInputStream();
private static class Java2Weak extends java.lang.ref.WeakReference implements org.xwt.Weak {
public Java2Weak(Object o) { super(o); }
int x_out, y_out;
XConfigureEvent* xce = (XConfigureEvent*)(e);
XTranslateCoordinates(display, (*((Window*)window)), RootWindow(display, screen_num), 0, 0, &x_out, &y_out, &child);
- if (xce->width != width || xce->height != height) SizeChange(xce->width, xce->height);
- if (x_out != root->abs(0) || y_out != root->abs(1)) PosChange(x_out, y_out);
+ if (xce->width != root->width || xce->height != root->height) SizeChange(xce->width, xce->height);
+ if (x_out != root->x || y_out != root->y) PosChange(x_out, y_out);
}
}