summaryrefslogtreecommitdiffstats
path: root/bundles/org.eclipse.swt
diff options
context:
space:
mode:
authorFelipe Heidrich <fheidric>2005-05-27 22:00:38 +0000
committerFelipe Heidrich <fheidric>2005-05-27 22:00:38 +0000
commit5c92116d349cc56b499ad71487a40cc4fd8a396d (patch)
tree9b3685c31102c5bb5737536a6f6e979bbbd21d7a /bundles/org.eclipse.swt
parentbb605fd794493374e32f48fe97164d9f096750c9 (diff)
downloadeclipse.platform.swt-5c92116d349cc56b499ad71487a40cc4fd8a396d.tar.gz
eclipse.platform.swt-5c92116d349cc56b499ad71487a40cc4fd8a396d.tar.xz
eclipse.platform.swt-5c92116d349cc56b499ad71487a40cc4fd8a396d.zip
96873 - fix widgets to no longer mirror images
Diffstat (limited to 'bundles/org.eclipse.swt')
-rwxr-xr-xbundles/org.eclipse.swt/Eclipse SWT/win32/org/eclipse/swt/widgets/Menu.java2
-rwxr-xr-xbundles/org.eclipse.swt/Eclipse SWT/win32/org/eclipse/swt/widgets/Table.java3
-rwxr-xr-xbundles/org.eclipse.swt/Eclipse SWT/win32/org/eclipse/swt/widgets/Tree.java3
3 files changed, 3 insertions, 5 deletions
diff --git a/bundles/org.eclipse.swt/Eclipse SWT/win32/org/eclipse/swt/widgets/Menu.java b/bundles/org.eclipse.swt/Eclipse SWT/win32/org/eclipse/swt/widgets/Menu.java
index 27d84b2ae6..f1f930ac0b 100755
--- a/bundles/org.eclipse.swt/Eclipse SWT/win32/org/eclipse/swt/widgets/Menu.java
+++ b/bundles/org.eclipse.swt/Eclipse SWT/win32/org/eclipse/swt/widgets/Menu.java
@@ -936,7 +936,7 @@ int imageIndex (Image image) {
int hOldList = OS.SendMessage (hwndCB, OS.TB_GETIMAGELIST, 0, 0);
if (hOldList != 0) OS.ImageList_Destroy (hOldList);
Rectangle bounds = image.getBounds ();
- imageList = display.getImageList (new Point (bounds.width, bounds.height));
+ imageList = display.getImageList (bounds.width, bounds.height);
int hImageList = imageList.getHandle ();
OS.SendMessage (hwndCB, OS.TB_SETIMAGELIST, 0, hImageList);
}
diff --git a/bundles/org.eclipse.swt/Eclipse SWT/win32/org/eclipse/swt/widgets/Table.java b/bundles/org.eclipse.swt/Eclipse SWT/win32/org/eclipse/swt/widgets/Table.java
index e6f57c56c1..e4c3c02c41 100755
--- a/bundles/org.eclipse.swt/Eclipse SWT/win32/org/eclipse/swt/widgets/Table.java
+++ b/bundles/org.eclipse.swt/Eclipse SWT/win32/org/eclipse/swt/widgets/Table.java
@@ -2249,9 +2249,8 @@ void setCheckboxImageListColor () {
void setCheckboxImageList (int width, int height) {
if ((style & SWT.CHECK) == 0) return;
int count = 4;
- int flags = ImageList.COLOR_FLAGS;
+ int flags = ImageList.COLOR_FLAGS | OS.ILC_MIRROR;
if (OS.COMCTL32_MAJOR < 6 || !OS.IsAppThemed ()) flags |= OS.ILC_MASK;
- if ((style & SWT.RIGHT_TO_LEFT) != 0) flags |= OS.ILC_MIRROR;
int hImageList = OS.ImageList_Create (width, height, flags, count, count);
int hDC = OS.GetDC (handle);
int memDC = OS.CreateCompatibleDC (hDC);
diff --git a/bundles/org.eclipse.swt/Eclipse SWT/win32/org/eclipse/swt/widgets/Tree.java b/bundles/org.eclipse.swt/Eclipse SWT/win32/org/eclipse/swt/widgets/Tree.java
index 4a93550c86..15c41ebc87 100755
--- a/bundles/org.eclipse.swt/Eclipse SWT/win32/org/eclipse/swt/widgets/Tree.java
+++ b/bundles/org.eclipse.swt/Eclipse SWT/win32/org/eclipse/swt/widgets/Tree.java
@@ -1733,9 +1733,8 @@ void setCheckboxImageList () {
if ((style & SWT.CHECK) == 0) return;
int count = 5;
int height = OS.SendMessage (handle, OS.TVM_GETITEMHEIGHT, 0, 0), width = height;
- int flags = ImageList.COLOR_FLAGS;
+ int flags = ImageList.COLOR_FLAGS | OS.ILC_MIRROR;
if (OS.COMCTL32_MAJOR < 6 || !OS.IsAppThemed ()) flags |= OS.ILC_MASK;
- if ((style & SWT.RIGHT_TO_LEFT) != 0) flags |= OS.ILC_MIRROR;
int hImageList = OS.ImageList_Create (width, height, flags, count, count);
int hDC = OS.GetDC (handle);
int memDC = OS.CreateCompatibleDC (hDC);