mirror of
https://github.com/gryf/wmaker.git
synced 2025-12-19 12:28:22 +01:00
wrong assert?
This commit is contained in:
@@ -372,11 +372,11 @@ RCombineAreaWithOpaqueness(RImage *image, RImage *src, int sx, int sy,
|
|||||||
int dalpha = HAS_ALPHA(image);
|
int dalpha = HAS_ALPHA(image);
|
||||||
int dch = (dalpha ? 4 : 3);
|
int dch = (dalpha ? 4 : 3);
|
||||||
|
|
||||||
assert(dy <= image->height);
|
assert(dy < image->height);
|
||||||
assert(dx <= image->width);
|
assert(dx < image->width);
|
||||||
|
|
||||||
assert(sy <= height);
|
assert(sy + height <= src->height);
|
||||||
assert(sx <= width);
|
assert(sx + width <= src->width);
|
||||||
|
|
||||||
|
|
||||||
/* clip */
|
/* clip */
|
||||||
|
|||||||
Reference in New Issue
Block a user