mirror of
https://github.com/ZDoom/qzdoom.git
synced 2024-12-11 21:21:47 +00:00
- fixed generation of default color range for the option menu font.
This commit is contained in:
parent
20b665c161
commit
38520e36c8
1 changed files with 5 additions and 2 deletions
|
@ -714,13 +714,16 @@ static void CalcDefaultTranslation(FFont* base, int index)
|
|||
{
|
||||
int index = int(lum * 255);
|
||||
remap[index] = GPalette.BaseColors[i];
|
||||
remap[index].a = 255;
|
||||
}
|
||||
}
|
||||
|
||||
// todo: fill the gaps.
|
||||
remap[0] = 0;
|
||||
//remap[0] = 0;
|
||||
int lowindex = 0;
|
||||
int highindex = 1;
|
||||
while (lowindex < 255 && remap[lowindex].a == 0) lowindex++;
|
||||
lowindex++;
|
||||
int highindex = lowindex + 1;
|
||||
|
||||
while (lowindex < 255)
|
||||
{
|
||||
|
|
Loading…
Reference in a new issue