Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGrant Gayed2007-08-29 19:18:21 +0000
committerGrant Gayed2007-08-29 19:18:21 +0000
commit8302dcae845b1fe69dae77b303345ce4bebc2e77 (patch)
tree15217e06f67625bc9983fcf798177d234168dc36
parenta3b0979fabcd78b8d5f896dda401ebe780fe2171 (diff)
downloadeclipse.platform.swt-8302dcae845b1fe69dae77b303345ce4bebc2e77.tar.gz
eclipse.platform.swt-8302dcae845b1fe69dae77b303345ce4bebc2e77.tar.xz
eclipse.platform.swt-8302dcae845b1fe69dae77b303345ce4bebc2e77.zip
196737
-rwxr-xr-xbundles/org.eclipse.swt/Eclipse SWT/win32/org/eclipse/swt/graphics/Image.java6
1 files changed, 6 insertions, 0 deletions
diff --git a/bundles/org.eclipse.swt/Eclipse SWT/win32/org/eclipse/swt/graphics/Image.java b/bundles/org.eclipse.swt/Eclipse SWT/win32/org/eclipse/swt/graphics/Image.java
index 0864466ce5..57f5504a2b 100755
--- a/bundles/org.eclipse.swt/Eclipse SWT/win32/org/eclipse/swt/graphics/Image.java
+++ b/bundles/org.eclipse.swt/Eclipse SWT/win32/org/eclipse/swt/graphics/Image.java
@@ -584,6 +584,12 @@ public Image (Device device, String filename) {
} catch (SWTException e) {
gdip = false;
}
+ /*
+ * Bug in GDI+. For some reason, Bitmap.LockBits() segment faults
+ * when loading GIF files in 64-bit Windows. The fix is to not use
+ * GDI+ image loading in this case.
+ */
+ if (gdip && OS.PTR_SIZEOF == 8 && filename.toLowerCase().endsWith(".gif")) gdip = false;
if (gdip) {
int length = filename.length();
char[] chars = new char[length+1];

Back to the top