Skip to content

Commit

Permalink
* Give the main window a minimum size of 640x400.
Browse files Browse the repository at this point in the history
Layout is still cramped, but the previous commit should fix it somewhat...
  • Loading branch information
iProgramMC committed Jun 9, 2024
1 parent d660d14 commit c160038
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions src/windows/Main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1131,6 +1131,13 @@ LRESULT CALLBACK WindowProc(HWND hWnd, UINT uMsg, WPARAM wParam, LPARAM lParam)
AutoComplete::DismissAutoCompleteWindowsIfNeeded(hWnd);
break;
}
case WM_GETMINMAXINFO: {
PMINMAXINFO pMinMaxInfo = (PMINMAXINFO) lParam;
// these are the minimums as of now!
pMinMaxInfo->ptMinTrackSize.x = ScaleByDPI(640);
pMinMaxInfo->ptMinTrackSize.y = ScaleByDPI(400);
break;
}
case WM_COMMAND:
return HandleCommand(hWnd, uMsg, wParam, lParam);

Expand Down

0 comments on commit c160038

Please sign in to comment.