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:
parent
c5a18812e2
commit
85c5df23cf
@ -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()
|
||||
|
||||
/*
|
||||
|
Loading…
Reference in New Issue
Block a user