summaryrefslogtreecommitdiff
path: root/src/main.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/main.cpp')
-rw-r--r--src/main.cpp8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/main.cpp b/src/main.cpp
index 948678c..ffdeb03 100644
--- a/src/main.cpp
+++ b/src/main.cpp
@@ -289,6 +289,14 @@ LRESULT WINAPI WndProc(HWND hWnd, UINT msg, WPARAM wParam, LPARAM lParam)
switch (msg)
{
+ case WM_GETMINMAXINFO:
+ {
+ MINMAXINFO* minMaxInfo = (MINMAXINFO*)lParam;
+ minMaxInfo->ptMinTrackSize.x = 1400; // Minimum width
+ minMaxInfo->ptMinTrackSize.y = 900; // Minimum height
+ return 0;
+ }
+
case WM_SIZE:
if (wParam == SIZE_MINIMIZED)
return 0;