// to work.
synchronized public void initGraphics() {
- cc.viewport.g = cc.viewport.getGraphics();
- graphics = getComponentGraphics(cc.viewport.g);
+ graphics = this.getGraphics();
prepareImage(im.image, scaledWidth, scaledHeight, this);
}
public void put(int x, int y, int w, int h, Graphics g) {
if (ic != null) {
ic.setPixels(x, y, w, h, cm, data, width() * y + x, width());
- g.setClip(x, y, w, h);
- ic.imageComplete(ImageConsumer.SINGLEFRAMEDONE);
+ desktop.repaint(x, y, w, h);
}
}
super.copyRect(x, y, w, h, srcX, srcY);
if (ic == null) return;
ic.setPixels(x, y, w, h, cm, data, width() * y + x, width());
- g.setClip(x, y, w, h);
- ic.imageComplete(ImageConsumer.SINGLEFRAMEDONE);
+ desktop.repaint(x, y, w, h);
}
// setColourMapEntries() changes some of the entries in the colourmap.