mirror of
https://github.com/LNH-team/pico-launcher.git
synced 2026-06-02 09:06:54 +02:00
Avoid having a single frame where the icon was not displayed on the top screen after selecting a different rom
This commit is contained in:
@@ -26,13 +26,17 @@ public:
|
||||
void SetIcon(std::unique_ptr<FileIcon> icon)
|
||||
{
|
||||
_icon = std::move(icon);
|
||||
if (_icon)
|
||||
{
|
||||
_icon->SetVramAddress(_iconVram, _iconVramOffset);
|
||||
}
|
||||
}
|
||||
|
||||
void UploadIconGraphics() const
|
||||
{
|
||||
if (_icon)
|
||||
{
|
||||
_icon->UploadGraphics(_iconVram);
|
||||
_icon->UploadGraphics();
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user