Документ в канвасе
This commit is contained in:
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user