summaryrefslogtreecommitdiff
path: root/plugingui/nativewindow_win32.cc
diff options
context:
space:
mode:
authorBent Bisballe Nyeng <deva@aasimon.org>2019-05-31 08:18:04 +0200
committerBent Bisballe Nyeng <deva@aasimon.org>2019-05-31 08:18:04 +0200
commitabc33d1b000ed7fbebbff9300864420fd6fb8fef (patch)
tree2e8c7d8b55c97b05f72e36679f34fb752f78ae73 /plugingui/nativewindow_win32.cc
parent7e7db3fe70ee4e9b7c64eb63843914f2525b8526 (diff)
Add (working) Cocoa UI support.
Diffstat (limited to 'plugingui/nativewindow_win32.cc')
-rw-r--r--plugingui/nativewindow_win32.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/plugingui/nativewindow_win32.cc b/plugingui/nativewindow_win32.cc
index 0dc30de..12d430f 100644
--- a/plugingui/nativewindow_win32.cc
+++ b/plugingui/nativewindow_win32.cc
@@ -129,7 +129,7 @@ LRESULT CALLBACK NativeWindowWin32::dialogProc(HWND hwnd, UINT msg,
scrollEvent->x = p.x;
scrollEvent->y = p.y;
- scrollEvent->delta = -1 * (short)HIWORD(wp) / 60;
+ scrollEvent->delta = -1 * (short)HIWORD(wp) / 60.0f;
native->event_queue.push_back(scrollEvent);
}
break;