1
0
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:
Christophe CURIS
2013-05-03 08:50:51 +02:00
committed by Carlos R. Mafra
parent 602fbc9ee4
commit ac89706859
2 changed files with 2 additions and 2 deletions

View File

@@ -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;

View File

@@ -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];