Lines Matching refs:flg
648 rasops_allocattr_color(void *cookie, int fg0, int bg0, int flg, long *attr)
661 if ((flg & WSATTR_BLINK) != 0)
664 if ((flg & WSATTR_WSCOLORS) == 0) {
677 if ((flg & WSATTR_HILIT) != 0 && fg < 8)
680 if ((flg & WSATTR_REVERSE) != 0) {
686 flg &= WSATTR_USERMASK;
689 flg |= WSATTR_PRIVATE1;
692 flg |= WSATTR_PRIVATE2;
694 *attr = (bg << 16) | (fg << 24) | flg;
702 rasops_allocattr_mono(void *cookie, int fg0, int bg0, int flg, long *attr)
706 if ((flg & (WSATTR_BLINK | WSATTR_HILIT | WSATTR_WSCOLORS)) != 0)
712 if ((flg & WSATTR_REVERSE) != 0) {
718 *attr = (bg << 16) | (fg << 24) | flg;