From cefa9e7d749ea62084b524cd7c9081a35c6bd4e7 Mon Sep 17 00:00:00 2001
From: D-AIRY <admin@ds-servers.com>
Date: Sat, 4 Jul 2020 15:29:32 +0300
Subject: [PATCH] Fixed terrax window title

---
 source/terrax/mainWindow.cpp | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)

diff --git a/source/terrax/mainWindow.cpp b/source/terrax/mainWindow.cpp
index 41a700d50..289167dff 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);
 	}
-- 
GitLab