mirror of
https://github.com/gryf/wmaker.git
synced 2025-12-20 04:48:06 +01:00
wmaker: Added 'const' attribute to most global functions
Signed-off-by: Christophe CURIS <christophe.curis@free.fr>
This commit is contained in:
committed by
Carlos R. Mafra
parent
f0c1dc9fc3
commit
9b5db31d95
@@ -175,7 +175,7 @@ void wTextureDestroy(WScreen * scr, WTexture * texture)
|
||||
#undef CANFREE
|
||||
}
|
||||
|
||||
WTexGradient *wTextureMakeGradient(WScreen * scr, int style, RColor * from, RColor * to)
|
||||
WTexGradient *wTextureMakeGradient(WScreen *scr, int style, const RColor *from, const RColor *to)
|
||||
{
|
||||
WTexGradient *texture;
|
||||
XGCValues gcv;
|
||||
@@ -199,8 +199,8 @@ WTexGradient *wTextureMakeGradient(WScreen * scr, int style, RColor * from, RCol
|
||||
return texture;
|
||||
}
|
||||
|
||||
WTexIGradient *wTextureMakeIGradient(WScreen * scr, int thickness1, RColor colors1[2],
|
||||
int thickness2, RColor colors2[2])
|
||||
WTexIGradient *wTextureMakeIGradient(WScreen *scr, int thickness1, const RColor colors1[2],
|
||||
int thickness2, const RColor colors2[2])
|
||||
{
|
||||
WTexIGradient *texture;
|
||||
XGCValues gcv;
|
||||
|
||||
Reference in New Issue
Block a user