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:
committed by
Carlos R. Mafra
parent
d1e1c13fa3
commit
8f7d4b7751
@@ -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