examples: make 2048 compile

pull/6464/head
Alexander Medvednikov 2020-09-23 20:50:03 +02:00
parent 2886b1c67d
commit 0cdeaaff6b
1 changed files with 1 additions and 1 deletions

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