Lines Matching refs:bg
362 alpha_blend(uint8_t fg, uint8_t bg, uint8_t alpha) in alpha_blend() argument
368 return (bg); in alpha_blend()
371 blend = (alpha * fg + (0xFF - alpha) * bg); in alpha_blend()
520 uint32_t fg, bg, offset, size; in bitmap_display_cursor() local
539 bg = ca->bg_color.eight; in bitmap_display_cursor()
544 sfb8[j] = (sfb8[j] ^ (fg & 0xff)) ^ (bg & 0xff); in bitmap_display_cursor()
555 bg = ca->bg_color.sixteen[0] << 8; in bitmap_display_cursor()
556 bg |= ca->bg_color.sixteen[1]; in bitmap_display_cursor()
564 (bg & 0xffff); in bitmap_display_cursor()
575 bg = ca->bg_color.twentyfour[0] << 16; in bitmap_display_cursor()
576 bg |= ca->bg_color.twentyfour[1] << 8; in bitmap_display_cursor()
577 bg |= ca->bg_color.twentyfour[2]; in bitmap_display_cursor()
583 ((bg >> 16) & 0xff); in bitmap_display_cursor()
585 ((bg >> 8) & 0xff); in bitmap_display_cursor()
587 (bg & 0xff); in bitmap_display_cursor()
598 bg = *(uint32_t *)&ca->bg_color; in bitmap_display_cursor()
605 sfb32[j] = (sfb32[j] ^ fg) ^ bg; in bitmap_display_cursor()