diff --git a/ConsoleGameEngine/olcConsoleGameEngine.h b/ConsoleGameEngine/olcConsoleGameEngine.h index e525801..2954861 100644 --- a/ConsoleGameEngine/olcConsoleGameEngine.h +++ b/ConsoleGameEngine/olcConsoleGameEngine.h @@ -411,7 +411,7 @@ class olcConsoleGameEngine return Error(L"Screen Width / Font Width Too Big"); // Set Physical Console Window Size - m_rectWindow = { 0, 0, (short)m_nScreenWidth - 1, (short)m_nScreenHeight - 1 }; + m_rectWindow = { 0, 0, (short)(m_nScreenWidth - 1), (short)(m_nScreenHeight - 1)}; if (!SetConsoleWindowInfo(m_hConsole, TRUE, &m_rectWindow)) return Error(L"SetConsoleWindowInfo");