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

@ -52,7 +52,7 @@ void MainWindow::Create(const FString& caption, int x, int y, int width, int hei
WS_EX_APPWINDOW,
WinClassName,
wcaption.c_str(),
WS_OVERLAPPEDWINDOW | WS_VISIBLE | WS_CLIPCHILDREN,
WS_OVERLAPPEDWINDOW | WS_CLIPCHILDREN,
x, y, width, height,
(HWND)NULL,
(HMENU)NULL,

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;
}