1
0
mirror of https://github.com/OpenRCT2/OpenRCT2 synced 2026-01-15 11:03:00 +01:00

Log SDL2 version on startup

This commit is contained in:
Ted John
2022-05-10 20:54:04 +01:00
committed by GitHub
parent db900b12db
commit b441cf768c

View File

@@ -113,6 +113,7 @@ public:
, _windowManager(CreateWindowManager())
, _shortcutManager(env)
{
LogSDLVersion();
if (SDL_Init(SDL_INIT_VIDEO | SDL_INIT_JOYSTICK) < 0)
{
SDLException::Throw("SDL_Init(SDL_INIT_VIDEO | SDL_INIT_JOYSTICK)");
@@ -714,6 +715,13 @@ public:
}
private:
void LogSDLVersion()
{
SDL_version version{};
SDL_GetVersion(&version);
log_verbose("SDL2 version: %d.%d.%d", version.major, version.minor, version.patch);
}
void CreateWindow(const ScreenCoordsXY& windowPos)
{
// Get saved window size