diff --git a/source/terrax/mainWindow.cpp b/source/terrax/mainWindow.cpp index 41a700d50f3ba2a395ec9920489ff083edadd091..289167dffa8cad0fef655355d47e2a0ef56da341 100644 --- a/source/terrax/mainWindow.cpp +++ b/source/terrax/mainWindow.cpp @@ -1605,6 +1605,10 @@ LRESULT CALLBACK WndProc(HWND hWnd, UINT message, WPARAM wParam, LPARAM lParam) PostQuitMessage(0); break; + case WM_SETTITLEASYNC: + SetWindowTextA(hWnd, (LPCSTR)lParam); + break; + case WM_CLOSE: if(g_pUndoManager->isDirty()) { @@ -2459,10 +2463,6 @@ LRESULT CALLBACK RenderWndProc(HWND hWnd, UINT message, WPARAM wParam, LPARAM lP DeleteObject(hcRotate); break; - case WM_SETTITLEASYNC: - SetWindowTextA(hWnd, (LPCSTR)lParam); - break; - default: return DefWindowProc(hWnd, message, wParam, lParam); }