examples: fix initial clock size on hdpi displays

pull/12443/head
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
1 changed files with 5 additions and 0 deletions

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
)