From c69f483757a628112e16141d93e59ef4b282e4a5 Mon Sep 17 00:00:00 2001 From: Skerper <31716517+Skerper@users.noreply.github.com> Date: Sat, 26 Jan 2019 20:12:12 +0900 Subject: [PATCH] Remove alphaview offset Offset was causing alpha bitmap to be misaligned --- project/src/graphics/utils/ImageDataUtil.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/project/src/graphics/utils/ImageDataUtil.cpp b/project/src/graphics/utils/ImageDataUtil.cpp index 2921bf33f..c64b9a1c9 100644 --- a/project/src/graphics/utils/ImageDataUtil.cpp +++ b/project/src/graphics/utils/ImageDataUtil.cpp @@ -215,7 +215,6 @@ namespace lime { Rectangle alphaRect = Rectangle (alphaPoint->x, alphaPoint->y, alphaImage->width, alphaImage->height); ImageDataView alphaView = ImageDataView (alphaImage, &alphaRect); - alphaView.Offset (sourceView.x, sourceView.y); destView.Clip (destPoint->x, destPoint->y, alphaView.width, alphaView.height); @@ -893,4 +892,4 @@ namespace lime { } -} \ No newline at end of file +}