fixed image clearing

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

No files matched your search

+4 -4
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++) {