From 2ccc0f5edd5f8e61bd0760f30b2d66f2d977b2bf Mon Sep 17 00:00:00 2001 From: Xavier ASUS Date: Sun, 18 Nov 2018 20:03:35 +0100 Subject: Added "const" qualifier to some functions. "cdrom:\ and ;1" are automatically inserted into file name, in order to save memory space. Some minor optimizations. --- Source/Gfx.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'Source/Gfx.h') diff --git a/Source/Gfx.h b/Source/Gfx.h index db9d0bf..6c191bc 100644 --- a/Source/Gfx.h +++ b/Source/Gfx.h @@ -52,10 +52,10 @@ void GfxDrawScene_Fast(void); bool GfxReadyForDMATransfer(void); // Fills a GsSprite structure with information from a TIM file. -bool GfxSpriteFromFile(char* fname, GsSprite* spr); +bool GfxSpriteFromFile(const char* fname, GsSprite* spr); // Reportedly, loads CLUT data from a TIM image (image data is discarded) -bool GfxCLUTFromFile(char* fname); +bool GfxCLUTFromFile(const char* fname); // Returns true if current object is within screen limits, false otherwise. bool GfxIsInsideScreenArea(short x, short y, short w, short h); -- cgit v1.2.3