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