mirror of
https://github.com/gryf/wmaker.git
synced 2025-12-18 20:10:29 +01:00
WRaster: Bugfix, added missing 'const' to RLoad* functions
Prototype of function changed in commit
d1e1c13fa3
but two of them were not updated in the source.
Thanks to Rodolfo García Peñas for taking the time to test and report.
This commit is contained in:
committed by
Carlos R. Mafra
parent
602fbc9ee4
commit
ac89706859
@@ -39,7 +39,7 @@ static int InterlacedJumps[] = { 8, 8, 4, 2 };
|
||||
/*
|
||||
* Partially based on code in gif2rgb from giflib, by Gershon Elber.
|
||||
*/
|
||||
RImage *RLoadGIF(char *file, int index)
|
||||
RImage *RLoadGIF(const char *file, int index)
|
||||
{
|
||||
RImage *image = NULL;
|
||||
unsigned char *cptr;
|
||||
|
||||
@@ -228,7 +228,7 @@ RImage *RGetImageFromXPMData(RContext * context, char **data)
|
||||
return NULL;
|
||||
}
|
||||
|
||||
RImage *RLoadXPM(RContext * context, char *file)
|
||||
RImage *RLoadXPM(RContext * context, const char *file)
|
||||
{
|
||||
RImage *image = NULL;
|
||||
char line[LINEWIDTH + 1];
|
||||
|
||||
Reference in New Issue
Block a user