Fix Star Wallpaper on light palettes

Now the background stays dark independent of the palette
lightness/darkness.
This commit is contained in:
TomAwezome 2020-07-24 20:58:32 -05:00 committed by VoidNV
parent cee1067819
commit 44eb2acc2f
2 changed files with 5 additions and 2 deletions

View File

@ -35,7 +35,10 @@ U0 WallPaperStars(CTask *task)
//Uncomment the following if you wish. Will draw the old wallpaper over this one.
//old_wall_paper(task);
task->text_attr = WHITE << 4 + WHITE;
if (gr_palette[0] > gr_palette[15])
task->text_attr = WHITE << 4 + WHITE;
else
task->text_attr = BLACK << 4 + BLACK;
}
@ -48,7 +51,7 @@ U0 WallInit()
"\nMust be Zenith Included. (SHIFT-F5 / RightClick->Zenith Include) \n";
return;
}
old_wall_paper=gr.fp_wall_paper;
old_wall_paper = gr.fp_wall_paper;
for (i = 0; i < NUM_STARS; i++)
{