1
0
mirror of https://github.com/vlang/v.git synced 2023-08-10 21:13:21 +03:00

examples: make 2048 compile

This commit is contained in:
Alexander Medvednikov 2020-09-23 20:50:03 +02:00
parent 2886b1c67d
commit 0cdeaaff6b

View File

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