diff options
author | Felipe Heidrich | 2009-04-20 15:59:46 +0000 |
---|---|---|
committer | Felipe Heidrich | 2009-04-20 15:59:46 +0000 |
commit | 4462dbf182b45c41591e38168e7e31a12cf3e131 (patch) | |
tree | 49f5cfabb03437fe86c604f2ed9b125d340f6f74 | |
parent | 73415b0571f810699ceb8be1dda62144bce14807 (diff) | |
download | eclipse.platform.swt-4462dbf182b45c41591e38168e7e31a12cf3e131.tar.gz eclipse.platform.swt-4462dbf182b45c41591e38168e7e31a12cf3e131.tar.xz eclipse.platform.swt-4462dbf182b45c41591e38168e7e31a12cf3e131.zip |
Bug 268750: image package: comparison is always true/false due to limited range of data type
-rwxr-xr-x | bundles/org.eclipse.swt/Eclipse SWT/win32/org/eclipse/swt/graphics/GC.java | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/bundles/org.eclipse.swt/Eclipse SWT/win32/org/eclipse/swt/graphics/GC.java b/bundles/org.eclipse.swt/Eclipse SWT/win32/org/eclipse/swt/graphics/GC.java index ad221db075..5095e0a1d6 100755 --- a/bundles/org.eclipse.swt/Eclipse SWT/win32/org/eclipse/swt/graphics/GC.java +++ b/bundles/org.eclipse.swt/Eclipse SWT/win32/org/eclipse/swt/graphics/GC.java @@ -32,6 +32,14 @@ import org.eclipse.swt.*; * </p> * * <p> + * The result of drawing on an image that was created with an indexed + * palette using a color that is not in the palette is platform specific. + * Some platforms will match to the nearest color while other will draw + * the color itself. This happens because the allocated image might use + * a direct palette on platforms that do not support indexed palette. + * </p> + * + * <p> * Application code must explicitly invoke the <code>GC.dispose()</code> * method to release the operating system resources managed by each instance * when those instances are no longer required. This is <em>particularly</em> |