comparison dwt/internal/win32/OS.d @ 233:51a84342d244

Fix sign bug for mouse wheel, thanks Bill
author Frank Benoit <benoit@tionex.de>
date Tue, 03 Jun 2008 23:19:30 +0200
parents f9b2183acd62
children e2affbeb686d
comparison
equal deleted inserted replaced
232:387fe83aa839 233:51a84342d244
3504 } 3504 }
3505 public static int /*long*/ MAKELRESULT(int l, int h){ 3505 public static int /*long*/ MAKELRESULT(int l, int h){
3506 return MAKELONG( l, h ); 3506 return MAKELONG( l, h );
3507 } 3507 }
3508 public static int GET_WHEEL_DELTA_WPARAM(int /*long*/ wParam){ 3508 public static int GET_WHEEL_DELTA_WPARAM(int /*long*/ wParam){
3509 return HIWORD(wParam); 3509 return cast(short) HIWORD(wParam);
3510 } 3510 }
3511 3511
3512 public static int GET_X_LPARAM(int /*long*/ lp){ 3512 public static int GET_X_LPARAM(int /*long*/ lp){
3513 return cast(short) (lp & 0xFFFF); 3513 return cast(short) (lp & 0xFFFF);
3514 } 3514 }