Yesterday I made a small mistake, and got the ordering of parameters
wrong in drawImage(...). Fixed by the attached patch.
2006-07-19 Roman Kennke <[EMAIL PROTECTED]>
* gnu/java/awt/peer/x/XGraphics.java
(drawImage(Image,int,int,int,int,int,int,int,int,ImageObserver)):
Fixed ordering of parameters.
/Roman
Index: gnu/java/awt/peer/x/XGraphics.java
===================================================================
RCS file: /cvsroot/classpath/classpath/gnu/java/awt/peer/x/XGraphics.java,v
retrieving revision 1.4
diff -u -1 -2 -r1.4 XGraphics.java
--- gnu/java/awt/peer/x/XGraphics.java 18 Jul 2006 18:17:10 -0000 1.4
+++ gnu/java/awt/peer/x/XGraphics.java 19 Jul 2006 08:16:27 -0000
@@ -555,25 +555,25 @@
public boolean drawImage(Image image, int x, int y, int width, int height,
Color bgcolor, ImageObserver observer)
{
// FIXME: Implement this.
throw new UnsupportedOperationException("Not yet implemented");
}
public boolean drawImage(Image image, int dx1, int dy1, int dx2, int dy2,
int sx1, int sy1, int sx2, int sy2,
ImageObserver observer)
{
- return drawImage(image, dx1, dy1, dx2, dy2, sx1, sx2, sy1, sy2, null,
+ return drawImage(image, dx1, dy1, dx2, dy2, sx1, sy1, sx2, sy2, null,
observer);
}
public boolean drawImage(Image image, int dx1, int dy1, int dx2, int dy2,
int sx1, int sy1, int sx2, int sy2, Color bgcolor,
ImageObserver observer)
{
// FIXME: What to do with bgcolor?
// Scale the image.
int sw = image.getWidth(observer);