Related to #1431.
This commit is contained in:
Camilla Löwy
2019-02-13 23:21:05 +01:00
parent cf79f06257
commit e2fa82ffbb
3 changed files with 6 additions and 3 deletions
+1 -1
View File
@@ -61,7 +61,7 @@
// GLFW uses DirectInput8 interfaces
#define DIRECTINPUT_VERSION 0x0800
// Enable standard cursors images defines
// GLFW uses OEM cursor resources
#define OEMRESOURCE
#include <wctype.h>
+3 -2
View File
@@ -2016,8 +2016,9 @@ int _glfwPlatformCreateStandardCursor(_GLFWcursor* cursor, int shape)
else
return GLFW_FALSE;
cursor->win32.handle =
(HCURSOR)LoadImage(NULL, MAKEINTRESOURCE(id), IMAGE_CURSOR, 0, 0, LR_DEFAULTSIZE | LR_SHARED);
cursor->win32.handle = LoadImageW(NULL,
MAKEINTRESOURCEW(id), IMAGE_CURSOR, 0, 0,
LR_DEFAULTSIZE | LR_SHARED);
if (!cursor->win32.handle)
{
_glfwInputErrorWin32(GLFW_PLATFORM_ERROR,