Fix int casts for MouseMotion

This commit is contained in:
vlo
2026-11-22 19:51:45 +01:00
parent ec920f10dd
commit 76736aaaa2
+2 -2
View File
@@ -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 });
}, },