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:
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
|
||||
[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
|
||||
)
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user