Skip to content

Commit 91b4743

Browse files
authored
Merge branch 'eclipse-platform:master' into master
2 parents 14f0f55 + 51fed8e commit 91b4743

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

bundles/org.eclipse.swt.svg/META-INF/MANIFEST.MF

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
Manifest-Version: 1.0
22
Bundle-ManifestVersion: 2
33
Bundle-SymbolicName: org.eclipse.swt.svg
4-
Bundle-Version: 3.130.0.qualifier
4+
Bundle-Version: 3.130.100.qualifier
55
Automatic-Module-Name: org.eclipse.swt.svg
66
Bundle-Name: %fragmentName
77
Bundle-Vendor: %providerName

bundles/org.eclipse.swt.svg/src/org/eclipse/swt/svg/JSVGRasterizer.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -121,14 +121,14 @@ private ImageData convertToSWTImageData(BufferedImage rasterizedImage) {
121121
int width = rasterizedImage.getWidth();
122122
int height = rasterizedImage.getHeight();
123123
int[] pixels = ((DataBufferInt) rasterizedImage.getRaster().getDataBuffer()).getData();
124-
PaletteData paletteData = new PaletteData(0x00FF0000, 0x0000FF00, 0x000000FF);
125-
ImageData imageData = new ImageData(width, height, 32, paletteData);
124+
PaletteData paletteData = new PaletteData(0xFF0000, 0x00FF00, 0x0000FF);
125+
ImageData imageData = new ImageData(width, height, 24, paletteData);
126126
int index = 0;
127127
for (int y = 0; y < imageData.height; y++) {
128128
for (int x = 0; x < imageData.width; x++) {
129129
int alpha = (pixels[index] >> 24) & 0xFF;
130130
imageData.setAlpha(x, y, alpha);
131-
imageData.setPixel(x, y, pixels[index++]);
131+
imageData.setPixel(x, y, pixels[index++] & 0x00FFFFFF);
132132
}
133133
}
134134
return imageData;

0 commit comments

Comments
 (0)