gg: add window_size() function (#8409)

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

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()
/*