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

gg: add window_size() function (#8409)

This commit is contained in:
Larpon 2021-01-29 11:11:03 +01:00 committed by GitHub
parent c5a18812e2
commit 85c5df23cf
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -660,6 +660,11 @@ pub fn screen_size() Size {
return Size{}
}
// window_size returns the `Size` of the active window
pub fn window_size() Size {
return Size{sapp.width(), sapp.height()}
}
fn C.WaitMessage()
/*