mirror of
https://github.com/TerryCavanagh/VVVVVV.git
synced 2024-12-31 22:19:44 +01:00
Reload window icon when mounting and unmounting assets
The window icon is simply another asset that can be customized by level makers. And in fact, one of my levels changes the window icon. It's simply named VVVVVV.png, but it doesn't sit in the graphics folder, rather it sits in the root VVVVVV directory. I noticed that this asset was missed when per-level assets loading was added, so I decided to add it in. There's a NULL check on screenbuffer because reloadresources() gets called before screenbuffer's init() does.
This commit is contained in:
parent
6d8b8d08b9
commit
c590c4b436
1 changed files with 5 additions and 0 deletions
|
@ -3242,6 +3242,11 @@ void Graphics::reloadresources() {
|
|||
images.push_back(grphx.im_image11);
|
||||
images.push_back(grphx.im_image12);
|
||||
|
||||
if (screenbuffer != NULL)
|
||||
{
|
||||
screenbuffer->LoadIcon();
|
||||
}
|
||||
|
||||
music.init();
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue