Skip to content

Commit

Permalink
Correct checking of ImageLeft/ImageTop
Browse files Browse the repository at this point in the history
  • Loading branch information
uyjulian committed Oct 17, 2021
1 parent 27a802b commit 8cc9674
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions LayerBitmapUtility.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -416,10 +416,7 @@ void SetLayerInformationOnLayerObject(tTJSVariantClosure clo, tTVPDrawFace *Face
void UpdateLayerWithLayerObject(tTJSVariantClosure clo, tTVPRect *ur, tjs_int *ImageLeft, tjs_int *ImageTop)
{
tTVPRect update_rect = *ur;
if (ImageLeft != 0 || ImageTop != 0)
{
update_rect.add_offsets(*ImageLeft, *ImageTop);
}
update_rect.add_offsets(ImageLeft != NULL ? *ImageLeft : 0, ImageTop != NULL ? *ImageTop : 0);
if (!update_rect.is_empty())
{
tTJSVariant args[4];
Expand Down

0 comments on commit 8cc9674

Please sign in to comment.