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))