Fixes cursor behavior with windows

This commit is contained in:
Rengierof 2015-12-26 16:38:00 +02:00
parent f76aba3d37
commit 11e27889ae
4 changed files with 41 additions and 23 deletions

View file

@ -217,6 +217,7 @@ unsafe fn init(title: Vec<u16>, window: &WindowAttributes, pf_reqs: &PixelFormat
// Creating a mutex to track the current window state
let window_state = Arc::new(Mutex::new(WindowState {
cursor: winapi::IDC_ARROW, // use arrow by default
cursor_state: CursorState::Normal,
attributes: window.clone()
}));