Lines Matching refs:pixel_bytes
160 if (font->texture->pixel_bytes != 1) { in gr_text()
178 int row_pixels = gr_draw->row_bytes / gr_draw->pixel_bytes; in gr_text()
193 if (icon->pixel_bytes != 1) { in gr_texticon()
203 int row_pixels = gr_draw->row_bytes / gr_draw->pixel_bytes; in gr_texticon()
222 gr_draw->row_bytes == gr_draw->width * gr_draw->pixel_bytes) { in gr_clear()
226 int row_diff = gr_draw->row_bytes / gr_draw->pixel_bytes - gr_draw->width; in gr_clear()
245 int row_pixels = gr_draw->row_bytes / gr_draw->pixel_bytes; in gr_fill()
263 if (gr_draw->pixel_bytes != source->pixel_bytes) { in gr_blit()
274 int src_row_pixels = source->row_bytes / source->pixel_bytes; in gr_blit()
275 int row_pixels = gr_draw->row_bytes / gr_draw->pixel_bytes; in gr_blit()
291 const uint8_t* src_p = source->data() + sy * source->row_bytes + sx * source->pixel_bytes; in gr_blit()
292 uint8_t* dst_p = gr_draw->data() + dy * gr_draw->row_bytes + dx * gr_draw->pixel_bytes; in gr_blit()
295 memcpy(dst_p, src_p, w * source->pixel_bytes); in gr_blit()
401 if (gr_draw->pixel_bytes != 4) { in gr_init()