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

examples: fix initial clock size on hdpi displays

This commit is contained in:
Delyan Angelov 2021-11-11 18:09:57 +02:00
parent 4728b975e3
commit 6c5dfc5c2f
No known key found for this signature in database
GPG Key ID: 66886C0F12D595ED

View File

@ -144,6 +144,10 @@ fn on_event(e &gg.Event, mut app App) {
}
}
fn on_init(mut app App) {
app.resize()
}
// is needed for easier diagnostics on windows
[console]
fn main() {
@ -163,6 +167,7 @@ fn main() {
user_data: app
frame_fn: on_frame
event_fn: on_event
init_fn: on_init
font_path: font_path
)