protected String[] _listFonts() { return fontList; }
protected Picture _createPicture(int[] data, int w, int h) { return new X11Picture(data, w, h); }
- protected PixelBuffer _createDoubleBuffer(int w, int h, Surface owner) { return new X11DoubleBuffer(w, h); }
+ protected PixelBuffer _createPixelBuffer(int w, int h, Surface owner) { return new X11PixelBuffer(w, h); }
protected Surface _createSurface(Box b, boolean framed) { return new X11Surface(b, framed); }
protected boolean _needsAutoClick() { return true; }
protected native int _getScreenWidth();
void buildPixelBuffer(boolean needsStipple) {
if (doublebuf != null) return;
// no point in using a shared pixmap since we'll only write to this image once
- X11PixelBuffer b = new X11DoubleBuffer(width, height, false);
+ X11PixelBuffer b = new X11PixelBuffer(width, height, false);
b.drawPicture(this, 0, 0);
if (needsStipple) b.createStipple(this);
doublebuf = b;
* with all-or-nothing alpha will not use shared pixmaps, however
* (since they are only written to once.
*/
- public static class X11PixelBuffer extends DoubleBuffer {
+ public static class X11PixelBuffer extends PixelBuffer {
int clipx, clipy, clipw, cliph;
int width;