mirror of
https://github.com/ZDoom/qzdoom.git
synced 2024-11-11 15:22:16 +00:00
- fixed: The texture compositor did not use a patch's translation.
This commit is contained in:
parent
e776dbce55
commit
cce82e99d6
1 changed files with 2 additions and 1 deletions
|
@ -315,7 +315,8 @@ int FMultiPatchTexture::CopyPixels(FBitmap *bmp, int conversion)
|
|||
}
|
||||
}
|
||||
|
||||
FBitmap Pixels = Parts[i].Image->GetCachedBitmap(nullptr, conversion, &ret);
|
||||
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);
|
||||
// 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;
|
||||
|
|
Loading…
Reference in a new issue