[cp-patches] FYI: java.awt.image.Raster.createInterleavedRaster() fix

Jeroen Frijters jeroen at sumatra.nl
Mon Jan 7 09:16:37 UTC 2008


Hi,

I committed the rather obvious fix below.

Regards,
Jeroen

2008-01-07  Jeroen Frijters  <jeroen at frijters.net>

        * java/awt/image/Raster.java
        (createInterleavedRaster): Fixed ComponentSampleModel constructor
        argument order.

Index: Raster.java
===================================================================
RCS file: /cvsroot/classpath/classpath/java/awt/image/Raster.java,v
retrieving revision 1.12
diff -u -r1.12 Raster.java
--- Raster.java 17 Oct 2006 14:53:36 -0000      1.12
+++ Raster.java 7 Jan 2008 09:02:02 -0000
@@ -302,7 +302,7 @@
       Point location)
   {
     SampleModel sm = new ComponentSampleModel(dataBuffer.getDataType(),
-        w, h, scanlineStride, pixelStride, bandOffsets);
+        w, h, pixelStride, scanlineStride, bandOffsets);
     return createWritableRaster(sm, dataBuffer, location);
   }





More information about the Classpath-patches mailing list