[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Qemacs-commit] qemacs haiku.cpp
From: |
Charlie Gordon |
Subject: |
[Qemacs-commit] qemacs haiku.cpp |
Date: |
Fri, 07 Feb 2014 23:42:23 +0000 |
CVSROOT: /sources/qemacs
Module name: qemacs
Changes by: Charlie Gordon <chqrlie> 14/02/07 23:42:23
Modified files:
. : haiku.cpp
Log message:
Fix wheel support on Haiku (Francois Revol)
* set uninitialized x and y members of the event struct to 0
CVSWeb URLs:
http://cvs.savannah.gnu.org/viewcvs/qemacs/haiku.cpp?cvsroot=qemacs&r1=1.10&r2=1.11
Patches:
Index: haiku.cpp
===================================================================
RCS file: /sources/qemacs/qemacs/haiku.cpp,v
retrieving revision 1.10
retrieving revision 1.11
diff -u -b -r1.10 -r1.11
--- haiku.cpp 4 Feb 2014 03:26:45 -0000 1.10
+++ haiku.cpp 7 Feb 2014 23:42:23 -0000 1.11
@@ -459,6 +459,8 @@
float delta;
ev->button_event.type = QE_BUTTON_PRESS_EVENT;
+ ev->button_event.x = 0;
+ ev->button_event.y = 0;
if (event->FindFloat("be:wheel_delta_y", &delta) < B_OK)
delta = 0.0;