Документ в канвасе

This commit is contained in:
2026-02-22 22:09:40 +03:00
parent bee9513ba0
commit 85a3bac095
3 changed files with 9 additions and 15 deletions

View File

@@ -18,7 +18,7 @@ pub const OpenDocument = struct {
const default_size = basic_models.Size{ .width = 800, .height = 600 };
self.document = Document.init(allocator, default_size);
self.cpu_render = CpuRenderEngine.init(allocator, .Squares);
self.canvas = Canvas.init(allocator, (&self.cpu_render).renderEngine());
self.canvas = Canvas.init(allocator, &self.document, (&self.cpu_render).renderEngine());
}
pub fn deinit(self: *OpenDocument) void {