changeset 33784:72adb79f5a16

Change fname parameter to const in pngRead().
author ib
date Mon, 11 Jul 2011 11:19:44 +0000
parents a450fade6a83
children 0c42fbe235d3
files gui/win32/skinload.c gui/win32/skinload.h
diffstat 2 files changed, 2 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/gui/win32/skinload.c	Mon Jul 11 11:10:06 2011 +0000
+++ b/gui/win32/skinload.c	Mon Jul 11 11:19:44 2011 +0000
@@ -106,7 +106,7 @@
 }
 
 /* reads a complete image as is into image buffer */
-static image *pngRead(skin_t *skin, unsigned char *fname)
+static image *pngRead(skin_t *skin, const char *fname)
 {
     int i;
     guiImage bmp;
--- a/gui/win32/skinload.h	Mon Jul 11 11:10:06 2011 +0000
+++ b/gui/win32/skinload.h	Mon Jul 11 11:19:44 2011 +0000
@@ -107,7 +107,7 @@
     void (*addwidget)(skin_t *skin, window *win, const char *desc);
     void (*removewidget)(skin_t *skin, int id);
     char *(*geteventname)(int event);
-    image *(*pngRead)(skin_t *skin, unsigned char *fname);
+    image *(*pngRead)(skin_t *skin, const char *fname);
 };
 
 skin_t *loadskin(char *skindir, int desktopbpp);