From ac1e4b7546fcb075dd8371ee1bbf8e7603603244 Mon Sep 17 00:00:00 2001 From: mkoch Date: Wed, 20 Apr 2005 09:13:22 +0000 Subject: [PATCH] 2005-04-20 Jeroen Frijters * java/awt/image/PixelGrabber.java (setPixels(int,int,int,int, ColorModel,byte[],int,int): Fixed byte to int conversion. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@98448 138bc75d-0d04-0410-961f-82ee72b054a4 --- libjava/ChangeLog | 5 +++++ libjava/java/awt/image/PixelGrabber.java | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/libjava/ChangeLog b/libjava/ChangeLog index c05188b..70169b0 100644 --- a/libjava/ChangeLog +++ b/libjava/ChangeLog @@ -1,3 +1,8 @@ +2005-04-20 Jeroen Frijters + + * java/awt/image/PixelGrabber.java (setPixels(int,int,int,int, + ColorModel,byte[],int,int): Fixed byte to int conversion. + 2005-04-20 Michael Koch * java/io/FilePermission.java diff --git a/libjava/java/awt/image/PixelGrabber.java b/libjava/java/awt/image/PixelGrabber.java index bcfa050..0287fb3 100644 --- a/libjava/java/awt/image/PixelGrabber.java +++ b/libjava/java/awt/image/PixelGrabber.java @@ -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 { -- 2.7.4