aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authortomaka <pierre.krieger1708@gmail.com>2015-07-19 16:13:24 +0200
committertomaka <pierre.krieger1708@gmail.com>2015-07-19 16:13:24 +0200
commit8aa6fea8324d730a7e5269f96d098f2ab437dbd6 (patch)
tree8b206ab6ddf9a556275edba5dbab2ce3d3ebd21d
parentd838ff7d441928ef3ac9fdd8b002ed13fb545f02 (diff)
parentb573a161a9474e85a420a00f533a38e55afda720 (diff)
downloadglutin-8aa6fea8324d730a7e5269f96d098f2ab437dbd6.tar.gz
glutin-8aa6fea8324d730a7e5269f96d098f2ab437dbd6.zip
Merge pull request #529 from tomaka/fix-win32
Fix the windows build
-rw-r--r--src/api/win32/event.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/api/win32/event.rs b/src/api/win32/event.rs
index 4c8f4f3..6fbde81 100644
--- a/src/api/win32/event.rs
+++ b/src/api/win32/event.rs
@@ -2,7 +2,7 @@ use events::VirtualKeyCode;
use winapi;
pub fn vkeycode_to_element(code: winapi::WPARAM) -> Option<VirtualKeyCode> {
- match code {
+ match code as i32 {
//winapi::VK_LBUTTON => Some(VirtualKeyCode::Lbutton),
//winapi::VK_RBUTTON => Some(VirtualKeyCode::Rbutton),
//winapi::VK_CANCEL => Some(VirtualKeyCode::Cancel),