Skip to content

Commit

Permalink
Removed linking from premake5.lua
Browse files Browse the repository at this point in the history
- I will note that linking should be done by the target application (e.g Hazelnut)
  • Loading branch information
Peter Nilsson committed Apr 20, 2023
1 parent d385754 commit 62fad91
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 6 deletions.
5 changes: 0 additions & 5 deletions premake5.lua
Original file line number Diff line number Diff line change
Expand Up @@ -96,11 +96,6 @@ project "GLFW"
"_CRT_SECURE_NO_WARNINGS"
}

links
{
"Dwmapi.lib"
}

filter "configurations:Debug"
runtime "Debug"
symbols "on"
Expand Down
2 changes: 1 addition & 1 deletion src/win32_window.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Expand Down

0 comments on commit 62fad91

Please sign in to comment.