Fix int casts for MouseMotion
This commit is contained in:
+2
-2
@@ -251,8 +251,8 @@ pub fn pollEvent(self: *Self) ?Event {
|
|||||||
},
|
},
|
||||||
xlib.MotionNotify => {
|
xlib.MotionNotify => {
|
||||||
return .{ .mouse_motion = .{
|
return .{ .mouse_motion = .{
|
||||||
.x = e.xmotion.x,
|
.x = @intCast(e.xmotion.x),
|
||||||
.y = e.xmotion.y,
|
.y = @intCast(e.xmotion.y),
|
||||||
} };
|
} };
|
||||||
//std.debug.print("Motion : {d} {d}\n", .{ e.xmotion.x, e.xmotion.y });
|
//std.debug.print("Motion : {d} {d}\n", .{ e.xmotion.x, e.xmotion.y });
|
||||||
},
|
},
|
||||||
|
|||||||
Reference in New Issue
Block a user