Убраны комментарии лишние и улучшены модели

This commit is contained in:
2026-02-23 23:01:49 +03:00
parent b896a67fd4
commit bd58286c98
15 changed files with 169 additions and 193 deletions

View File

@@ -1,4 +1,3 @@
// Отрисовка дочернего контента как текстуры с параметрами скругления
const std = @import("std");
const dvui = @import("dvui");
const TexturedBox = @This();
@@ -26,10 +25,6 @@ pub fn deinit(self: *TexturedBox) void {
const tex = dvui.textureFromTarget(picture.texture) catch null;
if (tex) |t| {
dvui.Texture.destroyLater(t);
// self.rs.r.y -= 2;
// self.rs.r.x -= 2;
// self.rs.r.h += 2;
// self.rs.r.w += 2;
dvui.renderTexture(t, self.rs, .{
.corner_radius = self.corner_radius,
}) catch {};