mirror of
https://github.com/gryf/wmaker.git
synced 2026-10-09 03:02:30 +02:00
added RFillImage
This commit is contained in:
1 parent
9915c4ab2a
commit
150432ff95
3 files changed
+11
-5
No files matched your search
+7
-3
@@ -89,7 +89,7 @@ RBevelImage(RImage *image, int bevel_type)
|
||||
|
||||
|
||||
void
|
||||
RClearImage(RImage *image, RColor *color)
|
||||
RFillImage(RImage *image, RColor *color)
|
||||
{
|
||||
if (image->format == RRGBAFormat) {
|
||||
unsigned char *d = image->data;
|
||||
@@ -117,7 +117,12 @@ RClearImage(RImage *image, RColor *color)
|
||||
memcpy(d, image->data, image->width*3);
|
||||
}
|
||||
}
|
||||
#if 0
|
||||
}
|
||||
|
||||
|
||||
void
|
||||
RClearImage(RImage *image, RColor *color)
|
||||
{
|
||||
if (color->alpha==255) {
|
||||
if (image->format == RRGBAFormat) {
|
||||
unsigned char *d = image->data;
|
||||
@@ -171,7 +176,6 @@ RClearImage(RImage *image, RColor *color)
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif
|
||||
}
|
||||
|
||||
const char*
|
||||
|
||||
Reference in new issue
Block a user