From 62fad91c8b5d46131e234600607d3bb6d881cf34 Mon Sep 17 00:00:00 2001 From: Peter Nilsson Date: Thu, 20 Apr 2023 19:53:22 +0200 Subject: [PATCH] Removed linking from premake5.lua - I will note that linking should be done by the target application (e.g Hazelnut) --- premake5.lua | 5 ----- src/win32_window.c | 2 +- 2 files changed, 1 insertion(+), 6 deletions(-) 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; }