Remove alphaview offset
Offset was causing alpha bitmap to be misaligned
This commit is contained in:
@@ -215,7 +215,6 @@ namespace lime {
|
|||||||
|
|
||||||
Rectangle alphaRect = Rectangle (alphaPoint->x, alphaPoint->y, alphaImage->width, alphaImage->height);
|
Rectangle alphaRect = Rectangle (alphaPoint->x, alphaPoint->y, alphaImage->width, alphaImage->height);
|
||||||
ImageDataView alphaView = ImageDataView (alphaImage, &alphaRect);
|
ImageDataView alphaView = ImageDataView (alphaImage, &alphaRect);
|
||||||
alphaView.Offset (sourceView.x, sourceView.y);
|
|
||||||
|
|
||||||
destView.Clip (destPoint->x, destPoint->y, alphaView.width, alphaView.height);
|
destView.Clip (destPoint->x, destPoint->y, alphaView.width, alphaView.height);
|
||||||
|
|
||||||
@@ -893,4 +892,4 @@ namespace lime {
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user