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

commit2e1ffca27072ad3bdc1d7b1683c59129099070ba
parentb63580472e
authorLucas Galante <[email protected]>
date2026-06-15 22:29
Fix HiDPI scale rendering for text areas in window runner

 src/backend/window_runner.rs | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/src/backend/window_runner.rs b/src/backend/window_runner.rs
index 0b7f2da..a2e13f1 100644
--- a/src/backend/window_runner.rs
+++ b/src/backend/window_runner.rs
@@ -884,7 +884,7 @@ pub trait Application: Sized + 'static {
                 buffer: &ti.buffer,
                 left: (ti.x * scale_f32).round(),
                 top: (ti.y * scale_f32).round(),
-                scale: 1.0,
+                scale: scale_f32,
                 bounds: item_bounds,
                 default_color: ti.color,
                 custom_glyphs: &[],
@@ -1259,7 +1259,7 @@ impl<A: Application> EngineState<A> {
                     buffer: &ti.buffer,
                     left: (ti.x * scale_f32).round(),
                     top: (ti.y * scale_f32).round(),
-                    scale: 1.0,
+                    scale: scale_f32,
                     bounds,
                     default_color: ti.color,
                     custom_glyphs: &[],