mirror of
https://github.com/gryf/wmaker.git
synced 2026-02-02 14:15:46 +01:00
A few bugfixes from users
This commit is contained in:
@@ -1,3 +1,5 @@
|
||||
- fixed a bug in RCombineAreaWithOpaqueness() (Brad <lists@anomie.yi.org>)
|
||||
|
||||
- Added retain/release mechanism to RImage by adding RRetainImage() and
|
||||
RReleaseImage(). RDestroyImage() is an alias to RReleaseImage() now, but
|
||||
will be removed in a future release because it no longer fits with the
|
||||
|
||||
@@ -412,7 +412,7 @@ RCombineAreaWithOpaqueness(RImage *image, RImage *src, int sx, int sy,
|
||||
|
||||
if (!HAS_ALPHA(src)) {
|
||||
|
||||
s = src->data + sy*src->width*3;
|
||||
s = src->data + (sy*src->width + sx)*3;
|
||||
swi = (src->width - width) * 3;
|
||||
|
||||
for (y=0; y < height; y++) {
|
||||
@@ -428,7 +428,7 @@ RCombineAreaWithOpaqueness(RImage *image, RImage *src, int sx, int sy,
|
||||
} else {
|
||||
int tmp;
|
||||
|
||||
s = src->data + sy*src->width*4;
|
||||
s = src->data + (sy*src->width + sx)*4;
|
||||
swi = (src->width - width) * 4;
|
||||
|
||||
for (y=0; y < height; y++) {
|
||||
|
||||
Reference in New Issue
Block a user