diff --git a/premake5.lua b/premake5.lua index d6bb8da2..4714ddf4 100644 --- a/premake5.lua +++ b/premake5.lua @@ -96,11 +96,6 @@ project "GLFW" "_CRT_SECURE_NO_WARNINGS" } - links - { - "Dwmapi.lib" - } - filter "configurations:Debug" runtime "Debug" symbols "on" diff --git a/src/win32_window.c b/src/win32_window.c index f0b7bcfd..8f5b5786 100644 --- a/src/win32_window.c +++ b/src/win32_window.c @@ -552,7 +552,7 @@ static LRESULT CALLBACK windowProc(HWND hWnd, UINT uMsg, SetRectEmpty(&border_thickness); if (GetWindowLongPtr(hWnd, GWL_STYLE) & WS_THICKFRAME) { - AdjustWindowRectEx(&border_thickness, GetWindowLongPtr(hWnd, GWL_STYLE) & ~WS_CAPTION, FALSE, NULL); + AdjustWindowRectEx(&border_thickness, GetWindowLongPtr(hWnd, GWL_STYLE) & ~WS_CAPTION, FALSE, 0); border_thickness.left *= -1; border_thickness.top *= -1; }