Lines Matching refs:gr_current
38 static uint32_t gr_current = ~0; variable
82 if (alpha == 255) return gr_current; in pixel_blend_argb()
87 uint32_t cur_r = gr_current & 0xff; in pixel_blend_argb()
88 uint32_t cur_g = gr_current & 0xff00; in pixel_blend_argb()
89 uint32_t cur_b = gr_current & 0xff0000; in pixel_blend_argb()
95 return (out_r & 0xff) | (out_g & 0xff00) | (out_b & 0xff0000) | (gr_current & 0xff000000); in pixel_blend_argb()
99 if (alpha == 255) return gr_current; in pixel_blend_rgba()
104 uint32_t cur_r = gr_current & 0xff00; in pixel_blend_rgba()
105 uint32_t cur_g = gr_current & 0xff0000; in pixel_blend_rgba()
106 uint32_t cur_b = gr_current & 0xff000000; in pixel_blend_rgba()
112 return (gr_current & 0xff) | (out_r & 0xff00) | (out_g & 0xff0000) | (out_b & 0xff000000); in pixel_blend_rgba()
137 return static_cast<uint8_t>((pix & (gr_current & get_alphamask())) >> get_alpha_shift()); in get_alpha()
187 uint8_t alpha_current = get_alpha(gr_current); in TextBlend()
202 if (!font || !font->texture || (gr_current & get_alphamask()) == 0) return; in gr_text()
256 gr_current = (a32 << 24) | (r32 << 16) | (g32 << 8) | b32; in gr_color()
258 gr_current = (b32 << 24) | (g32 << 16) | (r32 << 8) | a32; in gr_color()
260 gr_current = (a32 << 24) | (b32 << 16) | (g32 << 8) | r32; in gr_color()
265 if ((gr_current & 0xff) == ((gr_current >> 8) & 0xff) && in gr_clear()
266 (gr_current & 0xff) == ((gr_current >> 16) & 0xff) && in gr_clear()
267 (gr_current & 0xff) == ((gr_current >> 24) & 0xff) && in gr_clear()
269 memset(gr_draw->data(), gr_current & 0xff, gr_draw->height * gr_draw->row_bytes); in gr_clear()
275 *px++ = gr_current; in gr_clear()
293 uint8_t alpha = get_alpha(gr_current); in gr_fill()