mirror of
https://github.com/gryf/wmaker.git
synced 2025-12-19 12:28:22 +01:00
Added the last missing 'const' attributes to function parameters
This commit is contained in:
committed by
Carlos R. Mafra
parent
0bf6297a32
commit
9e4253f670
@@ -558,7 +558,7 @@ static int count_offset(unsigned long mask)
|
|||||||
return i;
|
return i;
|
||||||
}
|
}
|
||||||
|
|
||||||
RContext *RCreateContext(Display * dpy, int screen_number, RContextAttributes * attribs)
|
RContext *RCreateContext(Display * dpy, int screen_number, const RContextAttributes * attribs)
|
||||||
{
|
{
|
||||||
RContext *context;
|
RContext *context;
|
||||||
XGCValues gcv;
|
XGCValues gcv;
|
||||||
|
|||||||
@@ -65,7 +65,7 @@ RImage *RRenderMultiGradient(unsigned width, unsigned height, RColor ** colors,
|
|||||||
return NULL;
|
return NULL;
|
||||||
}
|
}
|
||||||
|
|
||||||
RImage *RRenderGradient(unsigned width, unsigned height, RColor * from, RColor * to, int style)
|
RImage *RRenderGradient(unsigned width, unsigned height, const RColor * from, const RColor * to, int style)
|
||||||
{
|
{
|
||||||
switch (style) {
|
switch (style) {
|
||||||
case RHorizontalGradient:
|
case RHorizontalGradient:
|
||||||
|
|||||||
@@ -166,7 +166,7 @@ static __inline__ unsigned char clip(int c)
|
|||||||
return (unsigned char)c;
|
return (unsigned char)c;
|
||||||
}
|
}
|
||||||
|
|
||||||
void RLightImage(RImage *image, RColor *color)
|
void RLightImage(RImage *image, const RColor *color)
|
||||||
{
|
{
|
||||||
unsigned char *d = image->data;
|
unsigned char *d = image->data;
|
||||||
unsigned char *dd;
|
unsigned char *dd;
|
||||||
|
|||||||
@@ -529,7 +529,7 @@ RCombineAreaWithOpaqueness(RImage * image, RImage * src, int sx, int sy,
|
|||||||
#undef COP
|
#undef COP
|
||||||
}
|
}
|
||||||
|
|
||||||
void RCombineImageWithColor(RImage * image, RColor * color)
|
void RCombineImageWithColor(RImage * image, const RColor * color)
|
||||||
{
|
{
|
||||||
register int i;
|
register int i;
|
||||||
unsigned char *d;
|
unsigned char *d;
|
||||||
@@ -602,7 +602,7 @@ RImage *RMakeTiledImage(RImage * tile, unsigned width, unsigned height)
|
|||||||
return image;
|
return image;
|
||||||
}
|
}
|
||||||
|
|
||||||
RImage *RMakeCenteredImage(RImage * image, unsigned width, unsigned height, RColor * color)
|
RImage *RMakeCenteredImage(RImage * image, unsigned width, unsigned height, const RColor * color)
|
||||||
{
|
{
|
||||||
int x, y, w, h, sx, sy;
|
int x, y, w, h, sx, sy;
|
||||||
RImage *tmp;
|
RImage *tmp;
|
||||||
|
|||||||
@@ -304,7 +304,7 @@ char *RGetImageFileFormat(const char *file);
|
|||||||
* Xlib contexts
|
* Xlib contexts
|
||||||
*/
|
*/
|
||||||
RContext *RCreateContext(Display *dpy, int screen_number,
|
RContext *RCreateContext(Display *dpy, int screen_number,
|
||||||
RContextAttributes *attribs);
|
const RContextAttributes *attribs);
|
||||||
|
|
||||||
void RDestroyContext(RContext *context);
|
void RDestroyContext(RContext *context);
|
||||||
|
|
||||||
@@ -341,7 +341,7 @@ RImage *RCloneImage(RImage *image);
|
|||||||
RImage *RGetSubImage(RImage *image, int x, int y, unsigned width,
|
RImage *RGetSubImage(RImage *image, int x, int y, unsigned width,
|
||||||
unsigned height);
|
unsigned height);
|
||||||
|
|
||||||
void RCombineImageWithColor(RImage *image, RColor *color);
|
void RCombineImageWithColor(RImage *image, const RColor *color);
|
||||||
|
|
||||||
void RCombineImages(RImage *image, RImage *src);
|
void RCombineImages(RImage *image, RImage *src);
|
||||||
|
|
||||||
@@ -371,7 +371,7 @@ RImage *RRotateImage(RImage *image, float angle);
|
|||||||
RImage *RMakeTiledImage(RImage *tile, unsigned width, unsigned height);
|
RImage *RMakeTiledImage(RImage *tile, unsigned width, unsigned height);
|
||||||
|
|
||||||
RImage* RMakeCenteredImage(RImage *image, unsigned width, unsigned height,
|
RImage* RMakeCenteredImage(RImage *image, unsigned width, unsigned height,
|
||||||
RColor *color);
|
const RColor *color);
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Drawing
|
* Drawing
|
||||||
@@ -415,14 +415,14 @@ void RHSVtoRGB(const RHSVColor *hsv, RColor *rgb);
|
|||||||
*/
|
*/
|
||||||
void RClearImage(RImage *image, const RColor *color);
|
void RClearImage(RImage *image, const RColor *color);
|
||||||
|
|
||||||
void RLightImage(RImage *image, RColor *color);
|
void RLightImage(RImage *image, const RColor *color);
|
||||||
|
|
||||||
void RFillImage(RImage *image, const RColor *color);
|
void RFillImage(RImage *image, const RColor *color);
|
||||||
|
|
||||||
void RBevelImage(RImage *image, int bevel_type);
|
void RBevelImage(RImage *image, int bevel_type);
|
||||||
|
|
||||||
RImage *RRenderGradient(unsigned width, unsigned height, RColor *from,
|
RImage *RRenderGradient(unsigned width, unsigned height, const RColor *from,
|
||||||
RColor *to, int style);
|
const RColor *to, int style);
|
||||||
|
|
||||||
|
|
||||||
RImage *RRenderMultiGradient(unsigned width, unsigned height, RColor **colors,
|
RImage *RRenderMultiGradient(unsigned width, unsigned height, RColor **colors,
|
||||||
|
|||||||
Reference in New Issue
Block a user