микроправки

This commit is contained in:
2025-12-20 21:57:10 +03:00
parent 8f462cc93b
commit 6f58967049
2 changed files with 14 additions and 13 deletions

View File

@@ -94,7 +94,7 @@ fn gui_frame(ctx: *WindowContext) bool {
std.debug.print("Error filling canvas: {}\n", .{err});
};
canvas.pos = .{ .x = 400, .y = 400 };
canvas.zoom = dvui.windowNaturalScale();
canvas.setZoom(dvui.windowNaturalScale());
}
if (dvui.checkbox(@src(), &canvas.native_scaling, "Scaling", .{})) {}
}