mirror of
https://github.com/ZDoom/qzdoom.git
synced 2024-11-24 21:11:39 +00:00
- Fixed: r_translate.cpp:SetRange() did not set the true color palette entry for single-entry ranges.
SVN r3608 (trunk)
This commit is contained in:
parent
192839a436
commit
c676f97fd8
1 changed files with 5 additions and 1 deletions
|
@ -864,7 +864,11 @@ static bool SetRange(FRemapTable *table, int start, int end, int first, int last
|
|||
bool identity = true;
|
||||
if (start == end)
|
||||
{
|
||||
table->Remap[start] = (first + last) / 2;
|
||||
int pi = (first + last) / 2;
|
||||
table->Remap[start] = GPalette.Remap[pi];
|
||||
identity &= (pi == start);
|
||||
table->Palette[start] = GPalette.BaseColors[table->Remap[start]];
|
||||
table->Palette[start].a = 255;
|
||||
}
|
||||
else
|
||||
{
|
||||
|
|
Loading…
Reference in a new issue