summaryrefslogtreecommitdiff
path: root/platform/windows
diff options
context:
space:
mode:
authorBastiaanOlij <mux213@gmail.com>2017-05-23 21:50:06 +1000
committerBastiaanOlij <mux213@gmail.com>2017-05-23 21:54:19 +1000
commit8b01f9d28ffccb21db04867d1265f0be9d40aa53 (patch)
treefdfd3e8630c77e57c509f9e4286d628f328817ee /platform/windows
parent6161e731d09fccaa6ccf103920305431638d2bd0 (diff)
Fix a few issues compiling windows and using VS2015 and earlier
Diffstat (limited to 'platform/windows')
-rw-r--r--platform/windows/os_windows.cpp2
-rw-r--r--platform/windows/os_windows.h3
2 files changed, 2 insertions, 3 deletions
diff --git a/platform/windows/os_windows.cpp b/platform/windows/os_windows.cpp
index ba5db05dab..830aae5515 100644
--- a/platform/windows/os_windows.cpp
+++ b/platform/windows/os_windows.cpp
@@ -565,7 +565,7 @@ LRESULT OS_Windows::WndProc(HWND hWnd, UINT uMsg, WPARAM wParam, LPARAM lParam)
ScreenToClient(hWnd, &coords);
- mb->set_pos(coords);
+ mb->set_pos(Vector2(coords.x, coords.y));
}
if (main_loop) {
diff --git a/platform/windows/os_windows.h b/platform/windows/os_windows.h
index bd5acde417..6cbdd58830 100644
--- a/platform/windows/os_windows.h
+++ b/platform/windows/os_windows.h
@@ -68,8 +68,7 @@ class OS_Windows : public OS {
struct KeyEvent {
- InputModifierState mod_state;
- bool alt, shift, ctrl, meta;
+ bool alt, shift, control, meta;
UINT uMsg;
WPARAM wParam;
LPARAM lParam;