Implement persistence for the editor window's size (#1336)

Implement persistence for the window size
This commit is contained in:
Stanislav Denisov
2025-11-26 16:16:30 +01:00
committed by GitHub
parent cf6f3434e4
commit 32fbee5613
4 changed files with 47 additions and 0 deletions
+3
View File
@@ -23,7 +23,10 @@ int APIENTRY wWinMain(_In_ HINSTANCE hInstance,
case WM_SIZE:
case WM_DPICHANGED:
if (editor.is_window_active && LOWORD(lParam) > 0 && HIWORD(lParam) > 0)
{
editor.SetWindow(hWnd);
editor.SaveWindowSize();
}
break;
case WM_CHAR:
switch (wParam)