Lines Matching refs:pixel_bytes
161 if (font->texture->pixel_bytes != 1) { in gr_text()
179 int row_pixels = gr_draw->row_bytes / gr_draw->pixel_bytes; in gr_text()
194 if (icon->pixel_bytes != 1) { in gr_texticon()
204 int row_pixels = gr_draw->row_bytes / gr_draw->pixel_bytes; in gr_texticon()
223 gr_draw->row_bytes == gr_draw->width * gr_draw->pixel_bytes) { in gr_clear()
227 int row_diff = gr_draw->row_bytes / gr_draw->pixel_bytes - gr_draw->width; in gr_clear()
246 int row_pixels = gr_draw->row_bytes / gr_draw->pixel_bytes; in gr_fill()
264 if (gr_draw->pixel_bytes != source->pixel_bytes) { in gr_blit()
275 int src_row_pixels = source->row_bytes / source->pixel_bytes; in gr_blit()
276 int row_pixels = gr_draw->row_bytes / gr_draw->pixel_bytes; in gr_blit()
292 const uint8_t* src_p = source->data() + sy * source->row_bytes + sx * source->pixel_bytes; in gr_blit()
293 uint8_t* dst_p = gr_draw->data() + dy * gr_draw->row_bytes + dx * gr_draw->pixel_bytes; in gr_blit()
296 memcpy(dst_p, src_p, w * source->pixel_bytes); in gr_blit()
407 if (gr_draw->pixel_bytes != 4) { in gr_init()