PixelGrabber.java (setPixels(int,int,int,int, ColorModel,byte[],int,int): Fixed byte...
authorJeroen Frijters <jeroen@frijters.net>
Wed, 20 Apr 2005 09:13:22 +0000 (09:13 +0000)
committerMichael Koch <mkoch@gcc.gnu.org>
Wed, 20 Apr 2005 09:13:22 +0000 (09:13 +0000)
2005-04-20  Jeroen Frijters  <jeroen@frijters.net>

* java/awt/image/PixelGrabber.java (setPixels(int,int,int,int,
ColorModel,byte[],int,int): Fixed byte to int conversion.

From-SVN: r98448

libjava/ChangeLog
libjava/java/awt/image/PixelGrabber.java

index c05188b..70169b0 100644 (file)
@@ -1,3 +1,8 @@
+2005-04-20  Jeroen Frijters  <jeroen@frijters.net>
+
+       * java/awt/image/PixelGrabber.java (setPixels(int,int,int,int,
+       ColorModel,byte[],int,int): Fixed byte to int conversion.
+
 2005-04-20  Michael Koch  <konqueror@gmx.de>
 
        * java/io/FilePermission.java
index bcfa050..0287fb3 100644 (file)
@@ -522,7 +522,7 @@ public class PixelGrabber implements ImageConsumer
 
                    assert (i >= 0 && i < int_pixel_buffer.length);
                    assert (p >= 0 && p < pixels.length);
-                   int_pixel_buffer[i] = currentModel.getRGB (pixels[p]);
+                   int_pixel_buffer[i] = currentModel.getRGB (pixels[p] & 0xFF);
                  }
                else
                  {