Clean up debugging stuff
This commit is contained in:
parent
64962b7b1b
commit
2c465861e1
12
src/main.zig
12
src/main.zig
@ -108,12 +108,8 @@ const Buffer = struct {
|
||||
}
|
||||
};
|
||||
|
||||
fn handleActive(win: mfb.Window(State), isActive: bool) callconv(.C) void {
|
||||
win.getUserData().?.*.active = isActive;
|
||||
var data = win.getUserData();
|
||||
if (data) |value| {
|
||||
value.*.active = isActive;
|
||||
}
|
||||
fn handleActive(win: mfb.Window(State), is_active: bool) callconv(.C) void {
|
||||
win.getUserData().?.*.active = is_active;
|
||||
}
|
||||
|
||||
fn handleResize(win: mfb.Window(State), width: i32, height: i32) callconv(.C) void {
|
||||
@ -147,9 +143,7 @@ fn handleMouseButton(_: mfb.Window(State), mouse_button: mfb.MouseButton, key_mo
|
||||
}
|
||||
|
||||
fn handleMouseMove(win: mfb.Window(State), x: i32, y: i32) callconv(.C) void {
|
||||
var state = win.getUserData().?;
|
||||
std.log.debug("cursor={any}", .{state.*.cursor});
|
||||
state.*.cursor = .{ .x = x, .y = y };
|
||||
win.getUserData().?.*.cursor = .{ .x = x, .y = y };
|
||||
}
|
||||
|
||||
pub fn main() !void {
|
||||
|
Loading…
Reference in New Issue
Block a user