From ae2faf83666646ca3bb221360d461706e2d660a5 Mon Sep 17 00:00:00 2001 From: Christian Semmler Date: Tue, 27 Jun 2023 00:20:26 +0200 Subject: [PATCH] WndProc 82% --- ISLE/main.cpp | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) diff --git a/ISLE/main.cpp b/ISLE/main.cpp index f3a0aae6..4f942a41 100644 --- a/ISLE/main.cpp +++ b/ISLE/main.cpp @@ -144,8 +144,6 @@ LRESULT WINAPI WndProc(HWND hWnd, UINT uMsg, WPARAM wParam, LPARAM lParam) NotificationId type; unsigned char keyCode = 0; - MINMAXINFO *mmi = (MINMAXINFO*) lParam; - if (!g_isle) { return DefWindowProcA(hWnd, uMsg, wParam, lParam); } @@ -176,10 +174,10 @@ LRESULT WINAPI WndProc(HWND hWnd, UINT uMsg, WPARAM wParam, LPARAM lParam) } return DefWindowProcA(hWnd,uMsg,wParam,lParam); case WM_GETMINMAXINFO: - mmi->ptMaxTrackSize.x = (g_windowRect.right - g_windowRect.left) + 1; - mmi->ptMaxTrackSize.y = (g_windowRect.bottom - g_windowRect.top) + 1; - mmi->ptMinTrackSize.x = (g_windowRect.right - g_windowRect.left) + 1; - mmi->ptMinTrackSize.y = (g_windowRect.bottom - g_windowRect.top) + 1; + ((MINMAXINFO*) lParam)->ptMaxTrackSize.x = (g_windowRect.right - g_windowRect.left) + 1; + ((MINMAXINFO*) lParam)->ptMaxTrackSize.y = (g_windowRect.bottom - g_windowRect.top) + 1; + ((MINMAXINFO*) lParam)->ptMinTrackSize.x = (g_windowRect.right - g_windowRect.left) + 1; + ((MINMAXINFO*) lParam)->ptMinTrackSize.y = (g_windowRect.bottom - g_windowRect.top) + 1; return 0; case WM_ENTERMENULOOP: return DefWindowProcA(hWnd,uMsg,wParam,lParam);