mirror of
https://github.com/vlang/v.git
synced 2023-08-10 21:13:21 +03:00
examples: fix 2048 scaling
This commit is contained in:
@@ -591,8 +591,8 @@ fn (mut app App) resize() {
|
|||||||
s = 1.0
|
s = 1.0
|
||||||
}
|
}
|
||||||
window_size := gg.window_size()
|
window_size := gg.window_size()
|
||||||
w := int(window_size.width / s)
|
w := window_size.width
|
||||||
h := int(window_size.height / s)
|
h := window_size.height
|
||||||
m := f32(min(w, h))
|
m := f32(min(w, h))
|
||||||
app.ui.dpi_scale = s
|
app.ui.dpi_scale = s
|
||||||
app.ui.window_width = w
|
app.ui.window_width = w
|
||||||
|
Reference in New Issue
Block a user