mirror of
https://github.com/rust-windowing/winit.git
synced 2026-08-31 13:50:05 -04:00
Merge pull request #64 from glennw/fix-get-dimensions
Fix closing X display in get_dimensions
This commit is contained in:
@@ -46,6 +46,7 @@ impl MonitorID {
|
|||||||
let screen = ffi::XScreenOfDisplay(display, screen_num as i32);
|
let screen = ffi::XScreenOfDisplay(display, screen_num as i32);
|
||||||
let width = ffi::XWidthOfScreen(screen);
|
let width = ffi::XWidthOfScreen(screen);
|
||||||
let height = ffi::XHeightOfScreen(screen);
|
let height = ffi::XHeightOfScreen(screen);
|
||||||
|
ffi::XCloseDisplay(display);
|
||||||
(width as uint, height as uint)
|
(width as uint, height as uint)
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user