Skip to content

Commit 81151f7

Browse files
author
Extrems
authored
Use limited color range (#84)
1 parent 7897233 commit 81151f7

File tree

2 files changed

+36
-36
lines changed

2 files changed

+36
-36
lines changed

gc/ogc/color.h

Lines changed: 20 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -4,25 +4,25 @@
44
// luminance is stored twice, thus one of the lum. is
55
// redundant, but this way we can fill the screen.
66

7-
#define COLOR_BLACK (0x00800080)
8-
#define COLOR_MAROON (0x266A26C0)
9-
#define COLOR_GREEN (0x4B554B4A)
10-
#define COLOR_OLIVE (0x7140718A)
11-
#define COLOR_NAVY (0x0EC00E75)
12-
#define COLOR_PURPLE (0x34AA34B5)
13-
#define COLOR_TEAL (0x59955940)
14-
#define COLOR_GRAY (0x80808080)
15-
#define COLOR_SILVER (0xC080C080)
16-
#define COLOR_RED (0x4C544CFF)
17-
#define COLOR_LIME (0x952B9515)
18-
#define COLOR_YELLOW (0xE100E194)
19-
#define COLOR_BLUE (0x1DFF1D6B)
20-
#define COLOR_FUCHSIA (0x69D469EA)
21-
#define COLOR_AQUA (0xB2ABB200)
22-
#define COLOR_WHITE (0xFF80FF80)
23-
#define COLOR_MONEYGREEN (0xD076D074)
24-
#define COLOR_SKYBLUE (0xC399C36A)
25-
#define COLOR_CREAM (0xFA79FA82)
26-
#define COLOR_MEDGRAY (0xA082A07F)
7+
#define COLOR_BLACK (0x10801080)
8+
#define COLOR_MAROON (0x316D31B8)
9+
#define COLOR_GREEN (0x515B5151)
10+
#define COLOR_OLIVE (0x71487189)
11+
#define COLOR_NAVY (0x1DB81D77)
12+
#define COLOR_PURPLE (0x3DA53DAF)
13+
#define COLOR_TEAL (0x5D935D48)
14+
#define COLOR_GRAY (0x7E807E80)
15+
#define COLOR_SILVER (0xB580B580)
16+
#define COLOR_RED (0x515A51F0)
17+
#define COLOR_LIME (0x91369122)
18+
#define COLOR_YELLOW (0xD210D292)
19+
#define COLOR_BLUE (0x29F0296E)
20+
#define COLOR_FUCHSIA (0x6ACA6ADE)
21+
#define COLOR_AQUA (0xAAA6AA10)
22+
#define COLOR_WHITE (0xEB80EB80)
23+
#define COLOR_MONEYGREEN (0xC378C376)
24+
#define COLOR_SKYBLUE (0xB896B86D)
25+
#define COLOR_CREAM (0xE87BE883)
26+
#define COLOR_MEDGRAY (0x9A829A80)
2727

2828
#endif /* COLOR_H */

libogc/console.c

Lines changed: 16 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -48,22 +48,22 @@ const devoptab_t dotab_stdout = {
4848
//color table
4949
static const unsigned int color_table[] =
5050
{
51-
0x00800080, // 30 normal black
52-
0x246A24BE, // 31 normal red
53-
0x4856484B, // 32 normal green
54-
0x6D416D8A, // 33 normal yellow
55-
0x0DBE0D75, // 34 normal blue
56-
0x32A932B4, // 35 normal magenta
57-
0x56955641, // 36 normal cyan
58-
0xC580C580, // 37 normal white
59-
0x7B807B80, // 30 bright black
60-
0x4C544CFF, // 31 bright red
61-
0x95299512, // 32 bright green
62-
0xE200E294, // 33 bright yellow
63-
0x1CFF1C6B, // 34 bright blue
64-
0x69D669ED, // 35 bright magenta
65-
0xB2ABB200, // 36 bright cyan
66-
0xFF80FF80, // 37 bright white
51+
0x10801080, // 30 normal black
52+
0x316D31B8, // 31 normal red
53+
0x515B5151, // 32 normal green
54+
0x71487189, // 33 normal yellow
55+
0x1DB81D77, // 34 normal blue
56+
0x3DA53DAF, // 35 normal magenta
57+
0x5D935D48, // 36 normal cyan
58+
0xB580B580, // 37 normal white
59+
0x7E807E80, // 30 bright black
60+
0x515A51F0, // 31 bright red
61+
0x91369122, // 32 bright green
62+
0xD210D292, // 33 bright yellow
63+
0x29F0296E, // 34 bright blue
64+
0x6ACA6ADE, // 35 bright magenta
65+
0xAAA6AA10, // 36 bright cyan
66+
0xEB80EB80, // 37 bright white
6767
};
6868

6969
static u32 do_xfb_copy = FALSE;

0 commit comments

Comments
 (0)