summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorSven Gothel <[email protected]>2013-10-15 03:55:57 +0200
committerSven Gothel <[email protected]>2013-10-15 03:55:57 +0200
commitb74f849c1864984e0be08fa18c9e555db701a971 (patch)
treec5b428e4985770142e2f12db4d4c8abba0ec13b6 /src
parent74c5332456c6faf48c0a81809969d54e056f346c (diff)
Cleanup DirectDataBufferInt: Fix type ; Remove unsused local vars
Diffstat (limited to 'src')
-rw-r--r--src/nativewindow/classes/com/jogamp/nativewindow/awt/DirectDataBufferInt.java6
1 files changed, 1 insertions, 5 deletions
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;