Lines Matching refs:fg
615 uint32_t fg = fg0, bg = bg0; in rasops_allocattr_color() local
617 if (__predict_false(fg >= sizeof(rasops_isgray) || in rasops_allocattr_color()
622 fg &= 7; in rasops_allocattr_color()
631 fg = WS_DEFAULT_FG; in rasops_allocattr_color()
633 fg = WSCOL_WHITE; in rasops_allocattr_color()
642 if ((flg & WSATTR_HILIT) != 0 && fg < 8) in rasops_allocattr_color()
643 fg += 8; in rasops_allocattr_color()
646 uint32_t swap = fg; in rasops_allocattr_color()
647 fg = bg; in rasops_allocattr_color()
653 if (rasops_isgray[fg]) in rasops_allocattr_color()
659 *attr = (bg << 16) | (fg << 24) | flg; in rasops_allocattr_color()
669 uint32_t fg = fg0, bg = bg0; in rasops_allocattr_mono() local
674 fg = 0xff; in rasops_allocattr_mono()
678 uint32_t swap = fg; in rasops_allocattr_mono()
679 fg = bg; in rasops_allocattr_mono()
683 *attr = (bg << 16) | (fg << 24) | flg; in rasops_allocattr_mono()
975 rasops_unpack_attr(long attr, int *fg, int *bg, int *underline) in rasops_unpack_attr() argument
978 *fg = ((uint32_t)attr >> 24) & 0xf; in rasops_unpack_attr()
1482 uint16_t fg, *rp; in rasops_putchar_rotated_cw() local
1506 fg = (uint16_t)ATTR_FG(ri, attr); in rasops_putchar_rotated_cw()
1509 *rp = fg; in rasops_putchar_rotated_cw()
1606 uint16_t fg, *rp; in rasops_putchar_rotated_ccw() local
1632 fg = (uint16_t)ATTR_FG(ri, attr); in rasops_putchar_rotated_ccw()
1635 *rp = fg; in rasops_putchar_rotated_ccw()