mirror of
https://github.com/joel16/gLib2D.git
synced 2024-11-23 09:59:58 +00:00
Use const char* instead of a char array
This commit is contained in:
parent
43bdd057c9
commit
1024a1866b
2
glib2d.c
2
glib2d.c
@ -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)
|
||||
|
2
glib2d.h
2
glib2d.h
@ -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.
|
||||
|
Loading…
Reference in New Issue
Block a user