RawData fake_ximage = null; // a 'fake' XImage corresponding to the shared pixmap; gives us the address and depth parameters
RawData shm_segment = null; // XShmSegmentInfo
- RawData gc; // Graphics Context on pm (never changes, so it's fast)
- RawData clipped_gc; // Graphics Context on pm, use this one if you need a clip/stipple
+ RawData gc; // Graphics JSContext on pm (never changes, so it's fast)
+ RawData clipped_gc; // Graphics JSContext on pm, use this one if you need a clip/stipple
/** PixelBuffer mode */
public X11PixelBuffer(int w, int h) { this(w, h, true); }
public native void finalize();
// FIXME: try to use os acceleration
- public void fillTrapezoid(int x1, int x2, int y1, int x3, int x4, int y2, int argb) {
+ public void fillJSTrapezoid(int x1, int x2, int y1, int x3, int x4, int y2, int argb) {
if (x1 == x3 && x2 == x4) {
fillRect(x1, y1, x4, y2, argb);
} else for(int y=y1; y<y2; y++) {