правильное определение видимой области

This commit is contained in:
2025-12-21 19:22:38 +03:00
parent d640269cad
commit 070c8bad2d
4 changed files with 64 additions and 60 deletions

View File

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