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

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
This commit is contained in:
Jeroen Frijters 2005-04-20 09:13:22 +00:00 committed by Michael Koch
parent 65d5bde825
commit 9db695c198
2 changed files with 6 additions and 1 deletions

View 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

View 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
{