GPU-accelerated UI toolkit (Vulkan)
git clone https://git.lucas.co/cce-ui.git
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: &[],