Function poke_a_mango::ops::window_size
[−]
[src]
pub fn window_size(desktop_size: (u32, u32)) -> [u32; 2]
Get the window size from the size of the target desktop.
Examples
Window size for an HD monitor:
assert_eq!(window_size((1280, 720)), [240, 480]);