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

fixed image clearing

This commit is contained in:
kojima
2000-03-07 01:12:12 +00:00
parent 0f9aa277c1
commit b974bd7e78
4 changed files with 52 additions and 9 deletions

View File

@@ -331,12 +331,12 @@ RCombineArea(RImage *image, RImage *src, int sx, int sy, unsigned width,
swi = (src->width - width) * 4;
s = src->data + (sy*(int)src->width + sx) * 4;
if (!HAS_ALPHA(image)) {
dwi = (image->width - width) * 3;
d = image->data + (dy*(int)image->width + dx) * 3;
} else {
if (dalpha) {
dwi = (image->width - width) * 4;
d = image->data + (dy*(int)image->width + dx) * 4;
} else {
dwi = (image->width - width) * 3;
d = image->data + (dy*(int)image->width + dx) * 3;
}
for (y=0; y < height; y++) {