mirror of
https://github.com/aseprite/aseprite.git
synced 2025-01-07 09:56:59 +00:00
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:
parent
a15dfb58bf
commit
c00f1e39c4
@ -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;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user