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

examples: fix 2048 scaling on Android (#14380)

This commit is contained in:
Larpon 2022-05-15 08:14:18 +02:00 committed by GitHub
parent 8d141878ce
commit dd6629e932
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

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