hide the old main window as it no longer contains the startup.

This commit is contained in:
Christoph Oelckers 2024-01-02 17:23:05 +01:00
commit 4afe1686da
3 changed files with 3 additions and 35 deletions

View file

@ -19,8 +19,7 @@ std::vector<uint8_t> LoadWidgetFontData(const std::string& name)
I_FatalError("Unable to find %s", name.c_str());
auto reader = WidgetResources->GetEntryReader(lump, FileSys::READER_SHARED);
std::vector<uint8_t> buffer;
buffer.resize(reader.GetLength());
std::vector<uint8_t> buffer(reader.GetLength());
reader.Read(buffer.data(), buffer.size());
return buffer;
}
@ -32,8 +31,7 @@ std::vector<uint8_t> LoadWidgetImageData(const std::string& name)
I_FatalError("Unable to find %s", name.c_str());
auto reader = WidgetResources->GetEntryReader(lump, FileSys::READER_SHARED);
std::vector<uint8_t> buffer;
buffer.resize(reader.GetLength());
std::vector<uint8_t> buffer(reader.GetLength());
reader.Read(buffer.data(), buffer.size());
return buffer;
}