Native image.copyPixels + alphaImage fix

This commit is contained in:
Joshua Granick
2019-07-29 11:38:05 -07:00
parent c8120c20d5
commit ac44102aaf
2 changed files with 2 additions and 4 deletions

View File

@@ -214,7 +214,7 @@ namespace lime {
int alphaPosition;
RGBA alphaPixel;
Rectangle alphaRect = Rectangle (alphaPoint->x, alphaPoint->y, alphaImage->width, alphaImage->height);
Rectangle alphaRect = Rectangle (sourceView.x + alphaPoint->x, sourceView.y + alphaPoint->y, sourceView.width, sourceView.height);
ImageDataView alphaView = ImageDataView (alphaImage, &alphaRect);
destView.Clip (destPoint->x, destPoint->y, alphaView.width, alphaView.height);