mirror of
https://github.com/Zeal-Operating-System/ZealOS.git
synced 2025-04-15 04:08:38 +01:00
Add night palette
This commit is contained in:
parent
837c4dda5e
commit
2467e31b7f
3 changed files with 15 additions and 10 deletions
Binary file not shown.
|
@ -1,8 +0,0 @@
|
|||
U0 Test()
|
||||
{
|
||||
MULPD XMM0, XMM15
|
||||
}
|
||||
|
||||
Uf("Test");
|
||||
|
||||
//Test;
|
|
@ -104,7 +104,7 @@ public CBGR24 gr_palette_smooth[COLORS_NUM] = {
|
|||
};
|
||||
|
||||
public U0 PaletteSetSmooth(Bool persistent=TRUE)
|
||||
{//Activate dark palette.
|
||||
{//Activate smooth palette.
|
||||
GrPaletteSet(gr_palette_smooth);
|
||||
LFBFlush;
|
||||
if (persistent)
|
||||
|
@ -117,9 +117,22 @@ public CBGR24 gr_palette_dorado[COLORS_NUM]= {
|
|||
};
|
||||
|
||||
public U0 PaletteSetDorado(Bool persistent=TRUE)
|
||||
{//Activate dark palette.
|
||||
{//Activate dorado palette.
|
||||
GrPaletteSet(gr_palette_dorado);
|
||||
LFBFlush;
|
||||
if (persistent)
|
||||
fp_set_std_palette = &PaletteSetDorado;
|
||||
}
|
||||
|
||||
public CBGR24 gr_palette_night[COLORS_NUM]= {
|
||||
0xDDDDDD, 0xAAAAFF, 0xAAAA00, 0x0000AA, 0xAA5555, 0xAA55AA, 0xAA5500, 0x444444,
|
||||
0x555555, 0x5555FF, 0x55FF55, 0x55FFFF, 0xFF5555, 0xFF55FF, 0xFFFF55, 0x111111
|
||||
};
|
||||
|
||||
public U0 PaletteSetNight(Bool persistent=TRUE)
|
||||
{//Activate night palette.
|
||||
GrPaletteSet(gr_palette_night);
|
||||
LFBFlush;
|
||||
if (persistent)
|
||||
fp_set_std_palette = &PaletteSetNight;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue