From 4cd745db48f9e83387bcc8408568518ac2ff31eb Mon Sep 17 00:00:00 2001 From: Christoph Oelckers Date: Mon, 17 Dec 2018 00:03:36 +0100 Subject: [PATCH] - fixed: Patch rotations were not applied during true color texture composition. --- src/textures/formats/multipatchtexture.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/textures/formats/multipatchtexture.cpp b/src/textures/formats/multipatchtexture.cpp index 1514b1dea..165a49344 100644 --- a/src/textures/formats/multipatchtexture.cpp +++ b/src/textures/formats/multipatchtexture.cpp @@ -317,7 +317,7 @@ int FMultiPatchTexture::CopyPixels(FBitmap *bmp, int conversion) auto trans = Parts[i].Translation ? Parts[i].Translation->Palette : nullptr; FBitmap Pixels = Parts[i].Image->GetCachedBitmap(trans, conversion, &ret); - bmp->Blit(Parts[i].OriginX, Parts[i].OriginY, Pixels, &info); + bmp->Blit(Parts[i].OriginX, Parts[i].OriginY, Pixels, Pixels.GetWidth(), Pixels.GetHeight(), Parts[i].Rotate, &info); // treat -1 (i.e. unknown) as absolute. We have no idea if this may have overwritten previous info so a real check needs to be done. if (ret == -1) retv = ret; else if (retv != -1 && ret > retv) retv = ret;