summaryrefslogtreecommitdiffstats
path: root/src/nativewindow/classes
diff options
context:
space:
mode:
Diffstat (limited to 'src/nativewindow/classes')
-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;