1
0
mirror of https://github.com/gryf/wmaker.git synced 2025-12-19 04:20:27 +01:00

Added 'const' attribute on non-modified arguments for drawing functions

All these functions expects agruments like color or list-of-points
that should not be modified (and are not) by the function; added
the corresponding qualifier to reflect that.
This commit is contained in:
Christophe CURIS
2013-05-01 20:26:33 +02:00
committed by Carlos R. Mafra
parent d1e1c13fa3
commit 8f7d4b7751
3 changed files with 31 additions and 31 deletions

View File

@@ -80,7 +80,7 @@ void RBevelImage(RImage * image, int bevel_type)
}
}
void RFillImage(RImage * image, RColor * color)
void RFillImage(RImage * image, const RColor * color)
{
unsigned char *d = image->data;
unsigned lineSize;
@@ -110,7 +110,7 @@ void RFillImage(RImage * image, RColor * color)
}
}
void RClearImage(RImage * image, RColor * color)
void RClearImage(RImage * image, const RColor * color)
{
unsigned char *d = image->data;
unsigned lineSize;