mirror of
https://github.com/LNH-team/pico-launcher.git
synced 2026-06-02 09:06:54 +02:00
Do not attempt to draw NdsFileIcon when the vram address is not yet set
This commit is contained in:
@@ -97,7 +97,8 @@ void NdsFileIcon::Update()
|
||||
|
||||
void NdsFileIcon::Draw(GraphicsContext& graphicsContext, const Rgb<8, 8, 8>& backgroundColor)
|
||||
{
|
||||
if (!graphicsContext.IsVisible(Rectangle(_position, 32, 32)))
|
||||
if (!graphicsContext.IsVisible(Rectangle(_position, 32, 32)) ||
|
||||
_vramAddress == nullptr)
|
||||
{
|
||||
return;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user