From 421810325a90c2949cb79d2c0da00016dc918ac7 Mon Sep 17 00:00:00 2001 From: Camilla Berglund Date: Wed, 12 Jun 2013 19:57:55 +0200 Subject: [PATCH] Win32 fixes. --- src/win32_monitor.c | 2 +- src/win32_window.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/win32_monitor.c b/src/win32_monitor.c index 47b5680d..2d1ae5b4 100644 --- a/src/win32_monitor.c +++ b/src/win32_monitor.c @@ -183,7 +183,7 @@ _GLFWmonitor** _glfwPlatformGetMonitors(int* count) GLboolean _glfwPlatformIsSameMonitor(_GLFWmonitor* first, _GLFWmonitor* second) { - return wcscmp(first->win32.name, second->win32.name); + return wcscmp(first->win32.name, second->win32.name) == 0; } void _glfwPlatformGetMonitorPos(_GLFWmonitor* monitor, int* xpos, int* ypos) diff --git a/src/win32_window.c b/src/win32_window.c index fc7f1209..c01529d3 100644 --- a/src/win32_window.c +++ b/src/win32_window.c @@ -182,7 +182,7 @@ static int translateKey(WPARAM wParam, LPARAM lParam) // order to determine which shift key was pressed (left or // right) const DWORD scancode = MapVirtualKey(VK_RSHIFT, 0); - if (((lParam & 0x01ff0000) >> 16) == scancode) + if ((DWORD) ((lParam & 0x01ff0000) >> 16) == scancode) return GLFW_KEY_RIGHT_SHIFT; return GLFW_KEY_LEFT_SHIFT;