The only issue is that the file is exactly in the right place, and it returns no error loading the sprite itself, so it cant be that, am i making some huge obvious mistake?? I ahve used initsprite, initkeyboard, and usepngimagedecoder before you ask:
Code: Select all
OpenScreen(\lWidth,\lHeight,\lDepth,\sTitle);
LoadSprite(0,"TitleScreen.png");
FreeImage(MainWindow\Images\lBannerImage);
FreeGadget(MainWindow\Gadgets\lImageBannerGadget);
CloseWindow(MainWindow\lHwnd);
Repeat;
FlipBuffers();
ClearScreen(RGB(0,0,0));
DisplaySprite(0,0,0) ; Error is here
ExamineKeyboard();
Until KeyboardPushed(#PB_Key_Escape);




