mirror of
https://github.com/gryf/wmaker.git
synced 2026-02-16 05:55:45 +01:00
wmaker: Added 'const' attribute to remaining functions
Signed-off-by: Christophe CURIS <christophe.curis@free.fr>
This commit is contained in:
committed by
Carlos R. Mafra
parent
c7ab9d34f7
commit
c9b816de75
@@ -37,7 +37,7 @@
|
||||
extern WPreferences wPreferences;
|
||||
|
||||
static void bevelImage(RImage * image, int relief);
|
||||
static RImage * get_texture_image(WScreen *scr, char *pixmap_file);
|
||||
static RImage * get_texture_image(WScreen *scr, const char *pixmap_file);
|
||||
|
||||
WTexSolid *wTextureMakeSolid(WScreen * scr, XColor * color)
|
||||
{
|
||||
@@ -259,7 +259,7 @@ WTexMGradient *wTextureMakeMGradient(WScreen * scr, int style, RColor ** colors)
|
||||
return texture;
|
||||
}
|
||||
|
||||
WTexPixmap *wTextureMakePixmap(WScreen * scr, int style, char *pixmap_file, XColor * color)
|
||||
WTexPixmap *wTextureMakePixmap(WScreen *scr, int style, const char *pixmap_file, XColor *color)
|
||||
{
|
||||
WTexPixmap *texture;
|
||||
XGCValues gcv;
|
||||
@@ -285,8 +285,8 @@ WTexPixmap *wTextureMakePixmap(WScreen * scr, int style, char *pixmap_file, XCol
|
||||
return texture;
|
||||
}
|
||||
|
||||
WTexTGradient *wTextureMakeTGradient(WScreen * scr, int style, RColor * from, RColor * to,
|
||||
char *pixmap_file, int opacity)
|
||||
WTexTGradient *wTextureMakeTGradient(WScreen *scr, int style, const RColor *from, const RColor *to,
|
||||
const char *pixmap_file, int opacity)
|
||||
{
|
||||
WTexTGradient *texture;
|
||||
XGCValues gcv;
|
||||
@@ -318,7 +318,7 @@ WTexTGradient *wTextureMakeTGradient(WScreen * scr, int style, RColor * from, RC
|
||||
return texture;
|
||||
}
|
||||
|
||||
static RImage * get_texture_image(WScreen *scr, char *pixmap_file)
|
||||
static RImage * get_texture_image(WScreen *scr, const char *pixmap_file)
|
||||
{
|
||||
char *file;
|
||||
RImage *image;
|
||||
|
||||
Reference in New Issue
Block a user