Skip to content

Commit

Permalink
Simplify further
Browse files Browse the repository at this point in the history
  • Loading branch information
ACrazyTown committed Dec 12, 2024
1 parent 6253252 commit 824da26
Showing 1 changed file with 2 additions and 8 deletions.
10 changes: 2 additions & 8 deletions project/src/ExternalInterface.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2052,16 +2052,10 @@ namespace lime {

} else {

Vector2* _alphaPoint = alphaPoint ? alphaPoint : new Vector2(0, 0);
Vector2 tempPoint = Vector2(0, 0);
Vector2* _alphaPoint = alphaPoint ? alphaPoint : &tempPoint;

ImageDataUtil::CopyPixels (image, sourceImage, sourceRect, destPoint, alphaImage, _alphaPoint, mergeAlpha);

if (!alphaPoint) {

delete _alphaPoint;

}

}

}
Expand Down

0 comments on commit 824da26

Please sign in to comment.