mirror of
https://github.com/vlang/v.git
synced 2025-09-14 15:02:33 +03:00
examples: fix initial clock size on hdpi displays
This commit is contained in:
parent
4728b975e3
commit
6c5dfc5c2f
1 changed files with 5 additions and 0 deletions
|
@ -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…
Add table
Add a link
Reference in a new issue