examples: fix initial clock size on hdpi displays
parent
4728b975e3
commit
6c5dfc5c2f
|
@ -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
|
// is needed for easier diagnostics on windows
|
||||||
[console]
|
[console]
|
||||||
fn main() {
|
fn main() {
|
||||||
|
@ -163,6 +167,7 @@ fn main() {
|
||||||
user_data: app
|
user_data: app
|
||||||
frame_fn: on_frame
|
frame_fn: on_frame
|
||||||
event_fn: on_event
|
event_fn: on_event
|
||||||
|
init_fn: on_init
|
||||||
font_path: font_path
|
font_path: font_path
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue