git.lucas.co / cce-ui
GPU-accelerated UI toolkit (Vulkan)
git clone https://git.lucas.co/cce-ui.git

commit209d954a228ee121d639aaf72edf571ceeffcc68
parent1fb91aa7e6
authorLucas Galante <[email protected]>
date2026-06-28 10:01
Always return background color quad in Backplate/Plate all_quads

 src/widget/container/backplate.rs | 7 ++-----
 src/widget/container/plate.rs     | 5 +----
 2 files changed, 3 insertions(+), 9 deletions(-)

diff --git a/src/widget/container/backplate.rs b/src/widget/container/backplate.rs
index 64f6566..02ba8f2 100644
--- a/src/widget/container/backplate.rs
+++ b/src/widget/container/backplate.rs
@@ -170,11 +170,8 @@ impl Element for Backplate {
         let mut quads = Vec::new();
         let bg_color = self.color();
         let (wx, wy, ww, wh) = self.rect();
-        let (r1, r2, r3, r4) = self.rounded_corners();
-        if !(r1 || r2 || r3 || r4) {
-            if bg_color[3] != 0.0 {
-                quads.push((wx, wy, ww, wh, bg_color));
-            }
+        if bg_color[3] != 0.0 {
+            quads.push((wx, wy, ww, wh, bg_color));
         }
         for &child_ptr in &self.children {
             let widget = unsafe { &*child_ptr };
diff --git a/src/widget/container/plate.rs b/src/widget/container/plate.rs
index e91e123..cbefdf6 100644
--- a/src/widget/container/plate.rs
+++ b/src/widget/container/plate.rs
@@ -365,10 +365,7 @@ impl Element for Plate {
         }
         let mut quads = Vec::new();
         let (px, py, pw, ph) = self.rect();
-        let (r1, r2, r3, r4) = self.rounded_corners();
-        if !(r1 || r2 || r3 || r4) {
-            quads.push((px, py, pw, ph, self.color()));
-        }
+        quads.push((px, py, pw, ph, self.color()));
 
         for &child_ptr in &self.base.children {
             let widget = unsafe { &*child_ptr };