From f716d1323e5e1bd8478cd19034a5c1d96ffa3bdd Mon Sep 17 00:00:00 2001 From: David Robillard Date: Mon, 27 Jan 2014 02:29:20 +0000 Subject: Fix scroll even call (and compilation) on Windows. Maybe. --- pugl/pugl_win.cpp | 4 ++-- 1 file 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: -- cgit v1.2.1