Mercurial > projects > dwt-win
changeset 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 | 387fe83aa839 |
children | 9c1bb90eba13 |
files | dwt/internal/win32/OS.d |
diffstat | 1 files changed, 1 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/dwt/internal/win32/OS.d Mon Jun 02 21:29:31 2008 +0200 +++ b/dwt/internal/win32/OS.d Tue Jun 03 23:19:30 2008 +0200 @@ -3506,7 +3506,7 @@ return MAKELONG( l, h ); } public static int GET_WHEEL_DELTA_WPARAM(int /*long*/ wParam){ - return HIWORD(wParam); + return cast(short) HIWORD(wParam); } public static int GET_X_LPARAM(int /*long*/ lp){