Lines Matching refs:gr_current
39 static uint32_t gr_current = ~0; variable
81 if (alpha == 255) return gr_current; in pixel_blend()
86 uint32_t cur_r = gr_current & 0xff; in pixel_blend()
87 uint32_t cur_g = gr_current & 0xff00; in pixel_blend()
88 uint32_t cur_b = gr_current & 0xff0000; in pixel_blend()
94 return (out_r & 0xff) | (out_g & 0xff00) | (out_b & 0xff0000) | (gr_current & 0xff000000); in pixel_blend()
144 uint8_t alpha_current = static_cast<uint8_t>((alpha_mask & gr_current) >> 24); in TextBlend()
159 if (!font || !font->texture || (gr_current & alpha_mask) == 0) return; in gr_text()
213 gr_current = (a32 << 24) | (r32 << 16) | (g32 << 8) | b32; in gr_color()
215 gr_current = (a32 << 24) | (b32 << 16) | (g32 << 8) | r32; in gr_color()
220 if ((gr_current & 0xff) == ((gr_current >> 8) & 0xff) && in gr_clear()
221 (gr_current & 0xff) == ((gr_current >> 16) & 0xff) && in gr_clear()
222 (gr_current & 0xff) == ((gr_current >> 24) & 0xff) && in gr_clear()
224 memset(gr_draw->data(), gr_current & 0xff, gr_draw->height * gr_draw->row_bytes); in gr_clear()
230 *px++ = gr_current; in gr_clear()
248 uint8_t alpha = static_cast<uint8_t>(((gr_current & alpha_mask) >> 24)); in gr_fill()