From 5265509715718a2b53e903e71c3f95a2dfaa3fd5 Mon Sep 17 00:00:00 2001 From: GutPuncher Date: Tue, 14 Mar 2023 00:48:57 -0400 Subject: [PATCH] Move SandyBeach palette into Palettes folder in ::/Home/PaletteEditor/. --- src/Home/PaletteEditor/Palettes/SandyBeach.ZC | 10 ++++++++++ src/System/Gr/GrPalette.ZC | 13 ------------- 2 files changed, 10 insertions(+), 13 deletions(-) create mode 100755 src/Home/PaletteEditor/Palettes/SandyBeach.ZC diff --git a/src/Home/PaletteEditor/Palettes/SandyBeach.ZC b/src/Home/PaletteEditor/Palettes/SandyBeach.ZC new file mode 100755 index 00000000..029b81a1 --- /dev/null +++ b/src/Home/PaletteEditor/Palettes/SandyBeach.ZC @@ -0,0 +1,10 @@ +public CBGR24 gr_palette_sandy_beach[COLORS_NUM] = { +0x000000, 0x000088, 0x008800, 0x006060, 0x002288, 0x4B0082, 0xA52A2A, 0xAAAAAA, 0x444444, 0x4169E1, 0xADFF2F, 0x00AAAA, 0xFF8888, 0x9932CC, 0xC09020, 0xFFF8DF +}; +public U0 PaletteSetSandyBeach(Bool persistent=TRUE) +{ + GrPaletteSet(gr_palette_sandy_beach); + LFBFlush; + if (persistent) + fp_set_std_palette = &PaletteSetSandyBeach; +} diff --git a/src/System/Gr/GrPalette.ZC b/src/System/Gr/GrPalette.ZC index 287a66ff..a9d0ee93 100755 --- a/src/System/Gr/GrPalette.ZC +++ b/src/System/Gr/GrPalette.ZC @@ -54,19 +54,6 @@ public U0 PaletteSetDark(Bool persistent=TRUE) //*(drv_text_attr(U8 *) + 1) = BROWN; } //******************************************************************************** -public CBGR24 gr_palette_sandy_beach[COLORS_NUM] = { - 0x000000, 0x000088, 0x008800, 0x006060, 0x002288, 0x4B0082, 0xA52A2A, 0xAAAAAA, - 0x444444, 0x4169E1, 0xADFF2F, 0x00AAAA, 0xFF8888, 0x9932CC, 0xC09020, 0xFFF8DF -}; - -public U0 PaletteSetSandyBeach(Bool persistent=TRUE) -{//Activate Sandy beach Light palette. - GrPaletteSet(gr_palette_sandy_beach); - LFBFlush; - if (persistent) - fp_set_std_palette = &PaletteSetSandyBeach; -} -//******************************************************************************** public CBGR24 gr_palette_light[COLORS_NUM] = { 0x000000, 0x0148A4, 0x3B7901, 0x057C7E, 0xBB2020, 0x9E42AE, 0xB57901, 0xB2B6AF,