Correct colors Palette

This commit is contained in:
y4my4my4m 2023-05-21 05:51:58 +09:00
parent b9c136a2c3
commit 7e73569e75
2 changed files with 13 additions and 3 deletions

View file

@ -63,7 +63,7 @@ U0 DrawCtrlSlider(CDC *dc, CCtrl *c)
tempColor = 0x000000; tempColor = 0x000000;
DrawPixel(c->win_task->pix_left + 78 + i, t + 7 + j, tempColor); DrawPixel(c->win_task->pix_left + 78 + i, t + 7 + j, tempColor);
} }
GrPrint(dc, 10, 26, "Current Color: #%d", selected_color + 1); GrPrint(dc, 10, 26, "Current Color: #%d", selected_color);
if (selected_color == 15) if (selected_color == 15)
dc->color = LTGRAY; dc->color = LTGRAY;
else if (gr_palette[selected_color] > 0xCCCCCC) else if (gr_palette[selected_color] > 0xCCCCCC)
@ -198,8 +198,8 @@ U0 DrawCtrlSlider(CDC *dc, CCtrl *c)
bias = (size / 2) - 4; bias = (size / 2) - 4;
if (i >= 9) if (i >= 9)
bias = (size / 2) - 8; bias = (size / 2) - 8;
GrPrint(dc, bias + (i * size), c->win_task->pix_height - (size * .6) + (size / 4), "%d", i + 1); GrPrint(dc, bias + (i * size), c->win_task->pix_height - (size * .6) + (size / 4), "%d", i);
GrPrint(dc, 10, (size2 * 2) + 70 + 16 * i, "#%d: Test", i + 1); GrPrint(dc, 10, (size2 * 2) + 70 + 16 * i, "#%d: Test", i);
} }

View file

@ -0,0 +1,10 @@
public CBGR24 gr_palette_tradition[COLORS_NUM] = {
0xE8E8E9, 0x374B88, 0x4FBC2C, 0x29CACE, 0xDD0000, 0x8C33FF, 0x875721, 0x7F7A7C, 0x15171C, 0x2EA1FF, 0x4FFF00, 0xFFBB, 0x690000, 0x6E3FFC, 0xFFCC00, 0xC0F14
};
public U0 PaletteSetTradition(Bool persistent=TRUE)
{
GrPaletteSet(gr_palette_tradition);
LFBFlush;
if (persistent)
fp_set_std_palette = &PaletteSetTradition;
}