diff options
Diffstat (limited to 'src/libvterm/src/pen.c')
-rw-r--r-- | src/libvterm/src/pen.c | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/src/libvterm/src/pen.c b/src/libvterm/src/pen.c index d7ea9b114..81987f6bc 100644 --- a/src/libvterm/src/pen.c +++ b/src/libvterm/src/pen.c @@ -33,17 +33,17 @@ static int ramp24[] = { 0x85, 0x90, 0x9B, 0xA6, 0xB1, 0xBC, 0xC7, 0xD2, 0xDD, 0xE8, 0xF3, 0xFF, }; -static bool lookup_colour_ansi(const VTermState *state, long index, VTermColor *col) +static int lookup_colour_ansi(const VTermState *state, long index, VTermColor *col) { if(index >= 0 && index < 16) { *col = state->colors[index]; - return true; + return TRUE; } - return false; + return FALSE; } -static bool lookup_colour_palette(const VTermState *state, long index, VTermColor *col) +static int lookup_colour_palette(const VTermState *state, long index, VTermColor *col) { if(index >= 0 && index < 16) { /* Normal 8 colours or high intensity - parse as palette 0 */ @@ -57,7 +57,7 @@ static bool lookup_colour_palette(const VTermState *state, long index, VTermColo col->green = ramp6[index/6 % 6]; col->red = ramp6[index/6/6 % 6]; - return true; + return TRUE; } else if(index >= 232 && index < 256) { /* 24 greyscales */ @@ -67,10 +67,10 @@ static bool lookup_colour_palette(const VTermState *state, long index, VTermColo col->green = ramp24[index]; col->red = ramp24[index]; - return true; + return TRUE; } - return false; + return FALSE; } static int lookup_colour(const VTermState *state, int palette, const long args[], int argcount, VTermColor *col, int *index) |