Load widget resources from lumps
Add banner
This commit is contained in:
parent
3f50136c8d
commit
71ff4d3685
10 changed files with 667 additions and 63 deletions
|
|
@ -95,20 +95,7 @@ LauncherWindow::LauncherWindow(WadStuff* wads, int numwads, int defaultiwad, int
|
|||
GamesList->AddItem(work.GetChars());
|
||||
}
|
||||
|
||||
/*try
|
||||
{
|
||||
auto filedata = ReadAllBytes("C:/Development/ZWidget/example/banner.png");
|
||||
std::vector<unsigned char> pixels;
|
||||
unsigned long width = 0, height = 0;
|
||||
int result = decodePNG(pixels, width, height, (const unsigned char*)filedata.data(), filedata.size(), true);
|
||||
if (result == 0)
|
||||
{
|
||||
Logo->SetImage(Image::Create(width, height, ImageFormat::R8G8B8A8, pixels.data()));
|
||||
}
|
||||
}
|
||||
catch (...)
|
||||
{
|
||||
}*/
|
||||
Logo->SetImage(Image::LoadResource("banner.png"));
|
||||
}
|
||||
|
||||
void LauncherWindow::OnGeometryChanged()
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue