Make Renderer11::Initialise use TitleScreenImagePath instead of Background.

This commit is contained in:
hispidence 2021-08-07 19:20:56 +01:00
parent c96a92f1cb
commit 361d22aa82

View file

@ -33,7 +33,7 @@ void T5M::Renderer::Renderer11::Initialise(int w, int h, int refreshRate, bool w
wchar_t titleScreenFile[255];
std::wstring titleFile = std::wstring(titleScreenFile);
std::mbstowcs(titleScreenFile, g_GameFlow->GetLevel(0)->Background.c_str(), 255);
std::mbstowcs(titleScreenFile, g_GameFlow->TitleScreenImagePath.c_str(), 255);
m_titleScreen = Texture2D(m_device.Get(), titleScreenFile);
auto whiteSpriteName = L"Textures/WhiteSprite.png";