mirror of
https://github.com/Zeal-Operating-System/ZealOS.git
synced 2024-12-25 23:10:32 +00:00
Cleanerer
This commit is contained in:
parent
3f64a301e7
commit
18e545dfe8
2 changed files with 3 additions and 12 deletions
|
@ -433,8 +433,7 @@ public U0 PaletteEditor()
|
|||
LFBFlush;
|
||||
break;
|
||||
case 'R':
|
||||
gr_palette[selected_color] = PaletteGod(FALSE, TRUE);
|
||||
LFBFlush;
|
||||
PaletteGod(FALSE, TRUE);
|
||||
break;
|
||||
case CH_CTRLI:
|
||||
PopUpOk("\n\n Use the arrows to select color\n\n # to manually input hex value","\n\n\n\t\tMade by y4my4m\n\n");
|
||||
|
|
|
@ -1,29 +1,21 @@
|
|||
CBGR24 ColorGod(Bool seedUse=TRUE, Bool instant=TRUE)
|
||||
{
|
||||
// Generate a random color, seed-based or not
|
||||
|
||||
if (seedUse)
|
||||
Seed(GodPick);
|
||||
if (instant || seedUse)
|
||||
{
|
||||
return RandI32 & 0xFFFFFF;
|
||||
}
|
||||
else {
|
||||
else
|
||||
return GodPick & 0xFFFFFF;
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
public U0 PaletteGod(Bool seedUse=TRUE, Bool instant=TRUE)
|
||||
{
|
||||
// Generate a random palette, seed-based or not
|
||||
I64 i;
|
||||
|
||||
for (i=0; i < 16; i++)
|
||||
{
|
||||
gr_palette[i] = ColorGod(seedUse, instant);
|
||||
LFBFlush;
|
||||
}
|
||||
LFBFlush;
|
||||
}
|
||||
|
||||
// PaletteGod;
|
||||
|
|
Loading…
Reference in a new issue