From 7492907e77d3b93ed91e47f552f94d155efb25da Mon Sep 17 00:00:00 2001 From: Larpon Date: Sun, 15 May 2022 08:14:18 +0200 Subject: [PATCH] examples: fix 2048 scaling on Android (#14380) --- examples/2048/2048.v | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/examples/2048/2048.v b/examples/2048/2048.v index 42a238cf7d..5e1021199a 100644 --- a/examples/2048/2048.v +++ b/examples/2048/2048.v @@ -556,11 +556,11 @@ fn (mut app App) set_theme(idx int) { } fn (mut app App) resize() { - mut s := gg.dpi_scale() + mut s := app.gg.scale if s == 0.0 { s = 1.0 } - window_size := gg.window_size() + window_size := app.gg.window_size() w := window_size.width h := window_size.height m := f32(math.min(w, h))