Lines Matching refs:pixel_bytes
171 if (font->texture->pixel_bytes != 1) { in gr_text()
190 int row_pixels = gr_draw->row_bytes / gr_draw->pixel_bytes; in gr_text()
205 if (icon->pixel_bytes != 1) { in gr_texticon()
216 int row_pixels = gr_draw->row_bytes / gr_draw->pixel_bytes; in gr_texticon()
240 gr_draw->row_bytes == gr_draw->width * gr_draw->pixel_bytes) { in gr_clear()
245 int row_diff = gr_draw->row_bytes / gr_draw->pixel_bytes - gr_draw->width; in gr_clear()
268 int row_pixels = gr_draw->row_bytes / gr_draw->pixel_bytes; in gr_fill()
290 if (gr_draw->pixel_bytes != source->pixel_bytes) { in gr_blit()
301 int src_row_pixels = source->row_bytes / source->pixel_bytes; in gr_blit()
302 int row_pixels = gr_draw->row_bytes / gr_draw->pixel_bytes; in gr_blit()
317 unsigned char* src_p = source->data + sy * source->row_bytes + sx * source->pixel_bytes; in gr_blit()
318 unsigned char* dst_p = gr_draw->data + dy * gr_draw->row_bytes + dx * gr_draw->pixel_bytes; in gr_blit()
322 memcpy(dst_p, src_p, w * source->pixel_bytes); in gr_blit()
364 gr_font->texture->pixel_bytes = 1; in gr_init_font()