Убраны комментарии лишние и улучшены модели
This commit is contained in:
@@ -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 {};
|
||||
|
||||
Reference in New Issue
Block a user