hide the old main window as it no longer contains the startup.
This commit is contained in:
parent
2431d214e6
commit
4afe1686da
3 changed files with 3 additions and 35 deletions
|
|
@ -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,
|
||||
|
|
|
|||
|
|
@ -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;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue