mirror of
https://github.com/glfw/glfw.git
synced 2024-11-29 21:37:27 +00:00
Win32 fixes.
This commit is contained in:
parent
35c386b7bb
commit
421810325a
@ -183,7 +183,7 @@ _GLFWmonitor** _glfwPlatformGetMonitors(int* count)
|
|||||||
|
|
||||||
GLboolean _glfwPlatformIsSameMonitor(_GLFWmonitor* first, _GLFWmonitor* second)
|
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)
|
void _glfwPlatformGetMonitorPos(_GLFWmonitor* monitor, int* xpos, int* ypos)
|
||||||
|
@ -182,7 +182,7 @@ static int translateKey(WPARAM wParam, LPARAM lParam)
|
|||||||
// order to determine which shift key was pressed (left or
|
// order to determine which shift key was pressed (left or
|
||||||
// right)
|
// right)
|
||||||
const DWORD scancode = MapVirtualKey(VK_RSHIFT, 0);
|
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_RIGHT_SHIFT;
|
||||||
|
|
||||||
return GLFW_KEY_LEFT_SHIFT;
|
return GLFW_KEY_LEFT_SHIFT;
|
||||||
|
Loading…
Reference in New Issue
Block a user