From abc33d1b000ed7fbebbff9300864420fd6fb8fef Mon Sep 17 00:00:00 2001 From: Bent Bisballe Nyeng Date: Fri, 31 May 2019 08:18:04 +0200 Subject: Add (working) Cocoa UI support. --- plugingui/nativewindow_win32.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'plugingui/nativewindow_win32.cc') 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; -- cgit v1.2.3