GPU-accelerated UI toolkit (Vulkan)
git clone https://git.lucas.co/cce-ui.git
Allow partial text overlap with overlays by moving left boundary instead of collapsing
src/backend/window_runner.rs | 4 +---
1 file changed, 1 insertion(+), 3 deletions(-)
diff --git a/src/backend/window_runner.rs b/src/backend/window_runner.rs
index 743efa6..530e958 100644
--- a/src/backend/window_runner.rs
+++ b/src/backend/window_runner.rs
@@ -947,10 +947,8 @@ pub trait Application: Sized + 'static {
{
if tx_pixel < ol as f32 {
item_bounds.right = item_bounds.right.min(ol);
- } else if tx_pixel > or as f32 {
- item_bounds.left = item_bounds.left.max(or);
} else {
- item_bounds.right = item_bounds.left;
+ item_bounds.left = item_bounds.left.max(or);
}
}
}