summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorFelipe Heidrich <fheidric>2006-02-10 20:02:17 +0000
committerFelipe Heidrich <fheidric>2006-02-10 20:02:17 +0000
commited885b96e85c5953515329ec1d3fb59dbff590e9 (patch)
tree24976363893699b87534e1d70d10e41d931b7852
parent2426868cd4d577b9a6466d95f1acf87c5442767d (diff)
downloadeclipse.platform.swt-ed885b96e85c5953515329ec1d3fb59dbff590e9.tar.gz
eclipse.platform.swt-ed885b96e85c5953515329ec1d3fb59dbff590e9.tar.xz
eclipse.platform.swt-ed885b96e85c5953515329ec1d3fb59dbff590e9.zip
*** empty log message ***v3224a
-rw-r--r--bundles/org.eclipse.swt/Eclipse SWT/win32/org/eclipse/swt/widgets/ExpandBar.java12
1 files changed, 6 insertions, 6 deletions
diff --git a/bundles/org.eclipse.swt/Eclipse SWT/win32/org/eclipse/swt/widgets/ExpandBar.java b/bundles/org.eclipse.swt/Eclipse SWT/win32/org/eclipse/swt/widgets/ExpandBar.java
index da3a749af7..33773138e1 100644
--- a/bundles/org.eclipse.swt/Eclipse SWT/win32/org/eclipse/swt/widgets/ExpandBar.java
+++ b/bundles/org.eclipse.swt/Eclipse SWT/win32/org/eclipse/swt/widgets/ExpandBar.java
@@ -491,8 +491,8 @@ LRESULT WM_KILLFOCUS (int wParam, int lParam) {
LRESULT WM_LBUTTONDOWN (int wParam, int lParam) {
LRESULT result = super.WM_LBUTTONDOWN (wParam, lParam);
if (result == LRESULT.ZERO) return result;
- int x = lParam & 0xFFFF;
- int y = lParam >> 16;
+ int x = (short) (lParam & 0xFFFF);
+ int y = (short) (lParam >> 16);
for (int i = 0; i < itemCount; i++) {
ExpandItem item = items[i];
boolean hover = item.x <= x && x < (item.x + item.width) && item.y <= y && y < (item.y + ExpandBar.HEADER_HEIGHT);
@@ -512,8 +512,8 @@ LRESULT WM_LBUTTONUP (int wParam, int lParam) {
if (result == LRESULT.ZERO) return result;
if (focusIndex == -1) return result;
ExpandItem item = items [focusIndex];
- int x = lParam & 0xFFFF;
- int y = lParam >> 16;
+ int x = (short) (lParam & 0xFFFF);
+ int y = (short) (lParam >> 16);
boolean hover = item.x <= x && x < (item.x + item.width) && item.y <= y && y < (item.y + ExpandBar.HEADER_HEIGHT);
if (hover) {
Event event = new Event ();
@@ -528,8 +528,8 @@ LRESULT WM_LBUTTONUP (int wParam, int lParam) {
LRESULT WM_MOUSEMOVE (int wParam, int lParam) {
LRESULT result = super.WM_MOUSEMOVE (wParam, lParam);
if (result == LRESULT.ZERO) return result;
- int x = lParam & 0xFFFF;
- int y = lParam >> 16;
+ int x = (short) (lParam & 0xFFFF);
+ int y = (short) (lParam >> 16);
for (int i = 0; i < itemCount; i++) {
ExpandItem item = items[i];
boolean hover = item.x <= x && x < (item.x + item.width) && item.y <= y && y < (item.y + ExpandBar.HEADER_HEIGHT);