Use const char* instead of a char array

This commit is contained in:
Joel16 2020-07-25 22:13:58 -04:00
parent 43bdd057c9
commit 1024a1866b
2 changed files with 2 additions and 2 deletions

View File

@ -1108,7 +1108,7 @@ static g2dTexture *_g2dTexLoadMemory(void *data, int size) {
return tex;
}
g2dTexture *g2dTexLoad(char *path, g2dTex_Mode mode) {
g2dTexture *g2dTexLoad(const char *path, g2dTex_Mode mode) {
g2dTexture *tex = NULL;
if (path == NULL)

View File

@ -392,7 +392,7 @@ void g2dTexFree(g2dTexture **tex);
* Swizzling is enabled only for 16*16+ textures (useless on small textures), pass G2D_SWIZZLE to enable it.
* Texture supported up to 512*512 in size only (hardware limitation).
*/
g2dTexture *g2dTexLoad(char path[], g2dTex_Mode mode);
g2dTexture *g2dTexLoad(const char *path, g2dTex_Mode mode);
/**
* \brief Loads an image from memory.