diff options
author | Silenio Quarti <silenio> | 2004-02-27 04:26:43 +0000 |
---|---|---|
committer | Silenio Quarti <silenio> | 2004-02-27 04:26:43 +0000 |
commit | 5c65edb3066ee09ffc655bf8e1a936918c3624ed (patch) | |
tree | a97b88b0d676487094665d40d62dd76f245f5e40 /bundles/org.eclipse.swt/Eclipse SWT/common | |
parent | bc86cc15b99209daaa7ceed217305db60ba45d2d (diff) | |
download | eclipse.platform.swt-5c65edb3066ee09ffc655bf8e1a936918c3624ed.tar.gz eclipse.platform.swt-5c65edb3066ee09ffc655bf8e1a936918c3624ed.tar.xz eclipse.platform.swt-5c65edb3066ee09ffc655bf8e1a936918c3624ed.zip |
*** empty log message ***
Diffstat (limited to 'bundles/org.eclipse.swt/Eclipse SWT/common')
-rwxr-xr-x | bundles/org.eclipse.swt/Eclipse SWT/common/org/eclipse/swt/graphics/ImageData.java | 8 |
1 files changed, 1 insertions, 7 deletions
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; |