Changeset 150 for trunk/src/plugins/org.eclipse.swt/Eclipse SWT PI
- Timestamp:
- Jun 13, 2009, 5:47:42 PM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/plugins/org.eclipse.swt/Eclipse SWT PI/pm/org/eclipse/swt/internal/pm/OS.java
r146 r150 2181 2181 public static final short SHORT1FROMMP (int mp) { return (short)mp; } 2182 2182 public static final short SHORT2FROMMP (int mp) { return (short)(mp >> 16); } 2183 public static final int MPFROM2SHORT(short s1, short s2){ return (((int)(s1)) | ((int)(s2)) << 16);}2184 //public static final int MPFROM2SHORT(short s1, short s2){ return ((s1 << 16) + s2);}2183 //public static final int MPFROM2SHORT(short s1, short s2){ return (((int)((short)s1)) | ((int)((short)s2)) << 16);} 2184 public static final int MPFROM2SHORT(short s1, short s2){ return ((s2 << 16) + s1);} 2185 2185 //public static final int MAKELONG (short l, short h) { 2186 2186 // return ((int)l) | (((int)h) << 16);
Note:
See TracChangeset
for help on using the changeset viewer.