mirror of
https://github.com/ZDoom/gzdoom.git
synced 2024-11-10 23:01:50 +00:00
- fixed: Patch rotations were not applied during true color texture composition.
This commit is contained in:
parent
87953020ba
commit
4cd745db48
1 changed files with 1 additions and 1 deletions
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue