mirror of
https://github.com/gryf/wmaker.git
synced 2026-10-08 18:52:31 +02: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:
1 parent
d1e1c13fa3
commit
8f7d4b7751
3 files changed
+31
-31
No files matched your search
+2
-2
@@ -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;
|
||||
|
||||
Reference in new issue
Block a user