Дополнительный буфер для отрисовки broken line

This commit is contained in:
2026-02-26 13:48:42 +03:00
parent 0eee436150
commit 05f5481a42
4 changed files with 59 additions and 11 deletions

View File

@@ -182,7 +182,7 @@ pub fn renderDocument(self: *CpuRenderEngine, document: *const Document, canvas_
defer self._allocator.free(pixels);
for (pixels) |*p| p.* = .{ .r = 255, .g = 255, .b = 255, .a = 255 };
cpu_draw.drawDocument(pixels, width, height, visible_rect, document, canvas_size);
try cpu_draw.drawDocument(pixels, width, height, visible_rect, document, canvas_size, self._allocator);
return try dvui.textureCreate(pixels, width, height, .nearest);
}