diff --git a/src/main.cpp b/src/main.cpp index 08fff98..3e4046e 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -58,12 +58,12 @@ static pascal OSErr OpenEventHandlerProc(const AppleEvent *event, AppleEvent *, #endif -static const int WindowWidth = round(static_cast(Compatible::GetDisplayWidth()) / 1.5f); -static const int WindowHeight = round(static_cast(Compatible::GetDisplayHeight()) / 1.5f); +int WindowWidth = round(static_cast(Compatible::GetDisplayWidth()) / 1.5f); +int WindowHeight = round(static_cast(Compatible::GetDisplayHeight()) / 1.5f); GameStateManager state_manager(WindowWidth, WindowHeight); -const static wstring application_name = L"SFBM v1.5.2"; +const static wstring application_name = L"SFBM v1.5.3"; const static std::wstring friendly_app_name = WSTRING(L"SFBM " + PianoGameVersionString); const static wstring error_header1 = L"SFBM detected a"; @@ -101,7 +101,13 @@ int WINAPI WinMain (HINSTANCE instance, HINSTANCE, PSTR, int iCmdShow) int main(int argc, char *argv[]) #endif { - + // Ensure the calculated window size is divisable by 2 + if (WindowWidth % 2) { + WindowWidth++; + } + if (WindowHeight % 2) { + WindowHeight++; + } #ifdef WIN32 WNDCLASS wndclass; wndclass.style = CS_HREDRAW | CS_VREDRAW; diff --git a/src/version.h b/src/version.h index 3d6b553..0372331 100644 --- a/src/version.h +++ b/src/version.h @@ -8,6 +8,6 @@ #include // See readme.txt for a list of what has changed between versions -static const std::wstring PianoGameVersionString = L"v1.5.2"; +static const std::wstring PianoGameVersionString = L"v1.5.3"; #endif