Skip to content

Commit e662d61

Browse files
committed
examples: fix 2048 scaling
1 parent aa3d0ea commit e662d61

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

examples/2048/2048.v

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -591,8 +591,8 @@ fn (mut app App) resize() {
591591
s = 1.0
592592
}
593593
window_size := gg.window_size()
594-
w := int(window_size.width / s)
595-
h := int(window_size.height / s)
594+
w := window_size.width
595+
h := window_size.height
596596
m := f32(min(w, h))
597597
app.ui.dpi_scale = s
598598
app.ui.window_width = w

0 commit comments

Comments
 (0)