summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSilenio Quarti <silenio>2002-12-06 17:42:47 +0000
committerSilenio Quarti <silenio>2002-12-06 17:42:47 +0000
commit00d29b24de4e1f808b19ab4338346fdda2a50a1e (patch)
tree4b8100b2375da4e8fcd937e6b501a54195fb4aa6
parent9d6a6181675ef3f8321a99a2d87021399f910ba2 (diff)
downloadeclipse.platform.swt-00d29b24de4e1f808b19ab4338346fdda2a50a1e.tar.gz
eclipse.platform.swt-00d29b24de4e1f808b19ab4338346fdda2a50a1e.tar.xz
eclipse.platform.swt-00d29b24de4e1f808b19ab4338346fdda2a50a1e.zip
*** empty log message ***
-rw-r--r--bundles/org.eclipse.swt/Eclipse SWT/carbon/org/eclipse/swt/graphics/Cursor.java46
1 files changed, 37 insertions, 9 deletions
diff --git a/bundles/org.eclipse.swt/Eclipse SWT/carbon/org/eclipse/swt/graphics/Cursor.java b/bundles/org.eclipse.swt/Eclipse SWT/carbon/org/eclipse/swt/graphics/Cursor.java
index dc37104330..c82c98e557 100644
--- a/bundles/org.eclipse.swt/Eclipse SWT/carbon/org/eclipse/swt/graphics/Cursor.java
+++ b/bundles/org.eclipse.swt/Eclipse SWT/carbon/org/eclipse/swt/graphics/Cursor.java
@@ -49,15 +49,43 @@ public final class Cursor {
Device device;
/**
- * data used to create a Resize NS Cursor
+ * data and mask used to create a Resize NS Cursor
*/
static final short [] SIZENS_SOURCE = new short[] {
- (short)0x0100,(short)0x0380,(short)0x07C0,
- (short)0x0100,(short)0x0100,(short)0x0000,
- (short)0xFFFE,(short)0xFFFE,(short)0x0000,
- (short)0x0100,(short)0x0100,(short)0x07C0,
- (short)0x0380,(short)0x0100,(short)0x0000,
- (short)0x0000
+ (short)0x0000,
+ (short)0x0180,
+ (short)0x03C0,
+ (short)0x07E0,
+ (short)0x0180,
+ (short)0x0180,
+ (short)0x0180,
+ (short)0x7FFE,
+ (short)0x7FFE,
+ (short)0x0180,
+ (short)0x0180,
+ (short)0x0180,
+ (short)0x07E0,
+ (short)0x03C0,
+ (short)0x0180,
+ (short)0x0000,
+ };
+ static final short [] SIZENS_MASK = new short[] {
+ (short)0x0180,
+ (short)0x03C0,
+ (short)0x07E0,
+ (short)0x0FF0,
+ (short)0x0FF0,
+ (short)0x03C0,
+ (short)0xFFFF,
+ (short)0xFFFF,
+ (short)0xFFFF,
+ (short)0xFFFF,
+ (short)0x03C0,
+ (short)0x0FF0,
+ (short)0x0FF0,
+ (short)0x07E0,
+ (short)0x03C0,
+ (short)0x0180,
};
/**
@@ -145,9 +173,9 @@ public Cursor(Device device, int style) {
if (style == SWT.CURSOR_SIZENS) {
org.eclipse.swt.internal.carbon.Cursor cursor = new org.eclipse.swt.internal.carbon.Cursor();
cursor.data = SIZENS_SOURCE;
- cursor.mask = SIZENS_SOURCE;
+ cursor.mask = SIZENS_MASK;
cursor.hotSpot_h = 7;
- cursor.hotSpot_v = 6;
+ cursor.hotSpot_v = 7;
handle = OS.NewPtrClear(org.eclipse.swt.internal.carbon.Cursor.sizeof);
if (handle == 0) SWT.error(SWT.ERROR_NO_HANDLES);
OS.memcpy(handle, cursor, org.eclipse.swt.internal.carbon.Cursor.sizeof);