From b74f849c1864984e0be08fa18c9e555db701a971 Mon Sep 17 00:00:00 2001 From: Sven Gothel Date: Tue, 15 Oct 2013 03:55:57 +0200 Subject: Cleanup DirectDataBufferInt: Fix type ; Remove unsused local vars --- .../classes/com/jogamp/nativewindow/awt/DirectDataBufferInt.java | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) (limited to 'src/nativewindow/classes/com') diff --git a/src/nativewindow/classes/com/jogamp/nativewindow/awt/DirectDataBufferInt.java b/src/nativewindow/classes/com/jogamp/nativewindow/awt/DirectDataBufferInt.java index 1d66d67e7..7a7a771d6 100644 --- a/src/nativewindow/classes/com/jogamp/nativewindow/awt/DirectDataBufferInt.java +++ b/src/nativewindow/classes/com/jogamp/nativewindow/awt/DirectDataBufferInt.java @@ -71,7 +71,7 @@ public final class DirectDataBufferInt extends DataBuffer { @Override public String toString() { return new String("BufferedImageInt@"+Integer.toHexString(hashCode()) - +": custum/internal type = "+customImageType+"/"+getType() + +": custom/internal type = "+customImageType+"/"+getType() +" "+getColorModel()+" "+getRaster()); } } @@ -98,10 +98,6 @@ public final class DirectDataBufferInt extends DataBuffer { * @return */ public static BufferedImageInt createBufferedImage(int width, int height, int imageType, Point location, Hashtable properties) { - final int[] bandOffsets = new int[imageType]; - for (int i=0; i < imageType; i++) { - bandOffsets[i] = i; - } final ColorSpace colorSpace = ColorSpace.getInstance(ColorSpace.CS_sRGB); final int transferType = DataBuffer.TYPE_INT; final int bpp, rmask, gmask, bmask, amask; -- cgit v1.2.3