aboutsummaryrefslogtreecommitdiffstats
path: root/pugl
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2014-01-27 02:29:20 +0000
committerDavid Robillard <d@drobilla.net>2014-01-27 02:29:20 +0000
commitf716d1323e5e1bd8478cd19034a5c1d96ffa3bdd (patch)
treeaacdeeab9035bcace4411f9f59961359a7a2c45f /pugl
parentb1646640d0cc6dcc3fcc32e31f211870b345a3f3 (diff)
downloadpugl-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.cpp4
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: