From 0cdeaaff6b500802427ce6f4a0ec1dc3d16a3ebb Mon Sep 17 00:00:00 2001 From: Alexander Medvednikov Date: Wed, 23 Sep 2020 20:50:03 +0200 Subject: [PATCH] examples: make 2048 compile --- examples/2048/2048.v | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/examples/2048/2048.v b/examples/2048/2048.v index 5f63760d79..b42ad7df2b 100644 --- a/examples/2048/2048.v +++ b/examples/2048/2048.v @@ -549,7 +549,7 @@ fn (mut app App) set_theme(idx int) { } fn (mut app App) resize() { - mut s := sapp.dpi_scale() || 1 + mut s := if sapp.dpi_scale() == 0 { 1 } else { sapp.dpi_scale() } w := int(sapp.width() / s) h := int(sapp.height() / s) m := f32(min(w, h))