diff options
author | David Robillard <d@drobilla.net> | 2014-01-27 02:29:20 +0000 |
---|---|---|
committer | David Robillard <d@drobilla.net> | 2014-01-27 02:29:20 +0000 |
commit | f716d1323e5e1bd8478cd19034a5c1d96ffa3bdd (patch) | |
tree | aacdeeab9035bcace4411f9f59961359a7a2c45f /pugl | |
parent | b1646640d0cc6dcc3fcc32e31f211870b345a3f3 (diff) | |
download | pugl-f716d1323e5e1bd8478cd19034a5c1d96ffa3bdd.tar.gz pugl-f716d1323e5e1bd8478cd19034a5c1d96ffa3bdd.tar.bz2 pugl-f716d1323e5e1bd8478cd19034a5c1d96ffa3bdd.zip |
Fix scroll even call (and compilation) on Windows. Maybe.
Diffstat (limited to 'pugl')
-rw-r--r-- | pugl/pugl_win.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/pugl/pugl_win.cpp b/pugl/pugl_win.cpp index 5f85d12..9b7cbcd 100644 --- a/pugl/pugl_win.cpp +++ b/pugl/pugl_win.cpp @@ -287,14 +287,14 @@ handleMessage(PuglView* view, UINT message, WPARAM wParam, LPARAM lParam) if (view->scrollFunc) { view->scrollFunc( view, GET_X_LPARAM(lParam), GET_Y_LPARAM(lParam), - (int16_t)HIWORD(wParam) / (float)WHEEL_DELTA); + 0.0f, (int16_t)HIWORD(wParam) / (float)WHEEL_DELTA); } break; case WM_MOUSEHWHEEL: if (view->scrollFunc) { view->scrollFunc( view, GET_X_LPARAM(lParam), GET_Y_LPARAM(lParam), - (int16_t)HIWORD(wParam) / float(WHEEL_DELTA), 0); + 0.0f, (int16_t)HIWORD(wParam) / float(WHEEL_DELTA)); } break; case WM_KEYDOWN: |