Browse Source

attr: fix a very old bug in caca_attr_to_ansi_fg.

tags/v0.99.beta19
Sam Hocevar sam 11 years ago
parent
commit
a836967426
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      caca/attr.c

+ 1
- 1
caca/attr.c View File

@@ -326,7 +326,7 @@ uint8_t caca_attr_to_ansi(uint32_t attr)
*/
uint8_t caca_attr_to_ansi_fg(uint32_t attr)
{
return nearest_ansi(((uint16_t)attr >> 4) & 0x3fff);
return nearest_ansi((attr >> 4) & 0x3fff);
}

/** \brief Get ANSI background information from attribute.


Loading…
Cancel
Save