diff --git a/src/win32_init.c b/src/win32_init.c index 4cd17ec1..a44e8145 100644 --- a/src/win32_init.c +++ b/src/win32_init.c @@ -452,7 +452,6 @@ static void createBlankCursor(void) free(andMask); free(xorMask); } - } // Initialize for remote sessions @@ -469,7 +468,6 @@ static void initRemoteSession(void) { createBlankCursor(); } - } ////////////////////////////////////////////////////////////////////////// @@ -749,7 +747,6 @@ int _glfwInitWin32(void) void _glfwTerminateWin32(void) { - if (_glfw.win32.blankCursor) DestroyCursor(_glfw.win32.blankCursor); diff --git a/src/win32_platform.h b/src/win32_platform.h index 5a817d05..1db31584 100644 --- a/src/win32_platform.h +++ b/src/win32_platform.h @@ -430,7 +430,6 @@ typedef struct _GLFWwindowWin32 // The last received cursor position, regardless of source int lastCursorPosX, lastCursorPosY; - // The last received high surrogate when decoding pairs of UTF-16 messages WCHAR highSurrogate; } _GLFWwindowWin32; diff --git a/src/win32_window.c b/src/win32_window.c index 6697f4e4..db3bed6e 100644 --- a/src/win32_window.c +++ b/src/win32_window.c @@ -951,7 +951,6 @@ static LRESULT CALLBACK windowProc(HWND hWnd, UINT uMsg, WPARAM wParam, LPARAM l dx = data->data.mouse.lLastX - window->win32.lastCursorPosX; dy = data->data.mouse.lLastY - window->win32.lastCursorPosY; } - } else { @@ -1458,13 +1457,11 @@ static int createNativeWindow(_GLFWwindow* window, window->win32.transparent = GLFW_TRUE; } - _glfwGetWindowSizeWin32(window, &window->win32.width, &window->win32.height); return GLFW_TRUE; } - GLFWbool _glfwCreateWindowWin32(_GLFWwindow* window, const _GLFWwndconfig* wndconfig, const _GLFWctxconfig* ctxconfig, @@ -1553,7 +1550,6 @@ void _glfwDestroyWindowWin32(_GLFWwindow* window) if (window->win32.smallIcon) DestroyIcon(window->win32.smallIcon); - } void _glfwSetWindowTitleWin32(_GLFWwindow* window, const char* title)