Fix compilation error on VS2013

As mouse_z is "volatile int", it looks like MSC cannot deduce the a
proper ctor for Point() (i.e. Point(const int&, const int&))
This commit is contained in:
David Capello 2015-06-23 10:08:21 -03:00
parent a15dfb58bf
commit c00f1e39c4

View File

@ -199,7 +199,7 @@ void she_mouse_callback(int flags) {
// mouse wheel
if (flags & MOUSE_FLAG_MOVE_Z) {
ev.setType(Event::MouseWheel);
ev.setWheelDelta(gfx::Point(0, she_mouse_z - mouse_z));
ev.setWheelDelta(gfx::Point(0, int(she_mouse_z - mouse_z)));
queue_event(ev);
she_mouse_z = mouse_z;
}