From 5c65edb3066ee09ffc655bf8e1a936918c3624ed Mon Sep 17 00:00:00 2001 From: Silenio Quarti Date: Fri, 27 Feb 2004 04:26:43 +0000 Subject: *** empty log message *** --- .../Eclipse SWT/common/org/eclipse/swt/graphics/ImageData.java | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) (limited to 'bundles/org.eclipse.swt/Eclipse SWT/common/org/eclipse/swt/graphics/ImageData.java') diff --git a/bundles/org.eclipse.swt/Eclipse SWT/common/org/eclipse/swt/graphics/ImageData.java b/bundles/org.eclipse.swt/Eclipse SWT/common/org/eclipse/swt/graphics/ImageData.java index 4c5e8be56b..92dabef1af 100755 --- a/bundles/org.eclipse.swt/Eclipse SWT/common/org/eclipse/swt/graphics/ImageData.java +++ b/bundles/org.eclipse.swt/Eclipse SWT/common/org/eclipse/swt/graphics/ImageData.java @@ -1613,14 +1613,8 @@ static int closestMatch(int depth, byte red, byte green, byte blue, int redMask, static final byte[] convertPad(byte[] data, int width, int height, int depth, int pad, int newPad) { if (pad == newPad) return data; - int stride = (width * depth + 7) / 8; - int bpl = (stride + (pad - 1)) / pad * pad; - - - pad = bpl - stride + 1; - - + int bpl = (stride + (pad - 1)) / pad * pad; int newBpl = (stride + (newPad - 1)) / newPad * newPad; byte[] newData = new byte[height * newBpl]; int srcIndex = 0, destIndex = 0; -- cgit