summaryrefslogtreecommitdiffstats
path: root/bundles/org.eclipse.swt/Eclipse SWT/win32/org/eclipse/swt/widgets/Menu.java
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/Eclipse SWT/win32/org/eclipse/swt/widgets/Menu.java
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/Eclipse SWT/win32/org/eclipse/swt/widgets/Menu.java')
-rwxr-xr-xbundles/org.eclipse.swt/Eclipse SWT/win32/org/eclipse/swt/widgets/Menu.java2
1 files changed, 1 insertions, 1 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);
}