Index: gnu/java/awt/peer/gtk/GdkGraphics2D.java =================================================================== RCS file: /cvsroot/classpath/classpath/gnu/java/awt/peer/gtk/GdkGraphics2D.java,v retrieving revision 1.34 diff -u -r1.34 GdkGraphics2D.java --- gnu/java/awt/peer/gtk/GdkGraphics2D.java 26 Apr 2005 18:56:18 -0000 1.34 +++ gnu/java/awt/peer/gtk/GdkGraphics2D.java 2 Jun 2005 13:53:53 -0000 @@ -510,21 +510,22 @@ if (img == null) return false; - if (img instanceof GtkOffScreenImage - && img.getGraphics() instanceof GdkGraphics2D - && (xform == null || xform.getType() == AffineTransform.TYPE_IDENTITY - || xform.getType() == AffineTransform.TYPE_TRANSLATION)) - { - // we are being asked to flush a double buffer from Gdk - GdkGraphics2D g2 = (GdkGraphics2D) img.getGraphics(); - gdkDrawDrawable(g2, (int) xform.getTranslateX(), - (int) xform.getTranslateY()); - - updateBufferedImage(); - - return true; - } - else + // FIXME: I'll fix this, /Sven +// if (img instanceof GtkOffScreenImage +// && img.getGraphics() instanceof GdkGraphics2D +// && (xform == null || xform.getType() == AffineTransform.TYPE_IDENTITY +// || xform.getType() == AffineTransform.TYPE_TRANSLATION)) +// { +// // we are being asked to flush a double buffer from Gdk +// GdkGraphics2D g2 = (GdkGraphics2D) img.getGraphics(); +// gdkDrawDrawable(g2, (int) xform.getTranslateX(), +// (int) xform.getTranslateY()); + +// updateBufferedImage(); + +// return true; +// } +// else { // In this case, xform is an AffineTransform that transforms bounding // box of the specified image from image space to user space. However Index: gnu/java/awt/peer/gtk/GtkImageConsumer.java =================================================================== RCS file: /cvsroot/classpath/classpath/gnu/java/awt/peer/gtk/GtkImageConsumer.java,v retrieving revision 1.1 diff -u -r1.1 GtkImageConsumer.java --- gnu/java/awt/peer/gtk/GtkImageConsumer.java 2 Jun 2005 13:18:10 -0000 1.1 +++ gnu/java/awt/peer/gtk/GtkImageConsumer.java 2 Jun 2005 13:53:53 -0000 @@ -76,7 +76,9 @@ public synchronized void setColorModel (ColorModel model) { - // we can safely ignore this + // This method is to inform on what the most used color model + // in the image is, for optimization reasons. We ignore this + // information. } public synchronized void setDimensions (int width, int height) @@ -89,7 +91,9 @@ public synchronized void setHints (int flags) { - // we ignore this + // This method informs us in which order the pixels are + // delivered, for progressive-loading support, etc. + // Since we wait until it's all loaded, we can ignore the hints. } public synchronized void setPixels (int x, int y, int width, int height,