Lines Matching refs:gr_draw
56 static GRSurface* gr_draw = NULL; variable
60 return x < 0 || x >= gr_draw->width || y < 0 || y >= gr_draw->height; in outside()
127 unsigned char* dst_p = gr_draw->data + y*gr_draw->row_bytes + x*gr_draw->pixel_bytes; in gr_text()
130 dst_p, gr_draw->row_bytes, in gr_text()
151 unsigned char* dst_p = gr_draw->data + y*gr_draw->row_bytes + x*gr_draw->pixel_bytes; in gr_texticon()
154 dst_p, gr_draw->row_bytes, in gr_texticon()
176 memset(gr_draw->data, gr_current_r, gr_draw->height * gr_draw->row_bytes); in gr_clear()
178 unsigned char* px = gr_draw->data; in gr_clear()
179 for (int y = 0; y < gr_draw->height; ++y) { in gr_clear()
180 for (int x = 0; x < gr_draw->width; ++x) { in gr_clear()
186 px += gr_draw->row_bytes - (gr_draw->width * gr_draw->pixel_bytes); in gr_clear()
201 unsigned char* p = gr_draw->data + y1 * gr_draw->row_bytes + x1 * gr_draw->pixel_bytes; in gr_fill()
212 p += gr_draw->row_bytes; in gr_fill()
227 p += gr_draw->row_bytes; in gr_fill()
235 if (gr_draw->pixel_bytes != source->pixel_bytes) { in gr_blit()
246 unsigned char* dst_p = gr_draw->data + dy*gr_draw->row_bytes + dx*gr_draw->pixel_bytes; in gr_blit()
252 dst_p += gr_draw->row_bytes; in gr_blit()
341 gr_fill(gr_draw->width - 200 - x, 300, gr_draw->width - x, 500);
343 gr_draw = gr_backend->flip(gr_backend);
356 gr_draw = gr_backend->flip(gr_backend); in gr_flip()
365 gr_draw = gr_backend->init(gr_backend); in gr_init()
366 if (!gr_draw) { in gr_init()
371 if (!gr_draw) { in gr_init()
373 gr_draw = gr_backend->init(gr_backend); in gr_init()
376 if (!gr_draw) { in gr_init()
378 gr_draw = gr_backend->init(gr_backend); in gr_init()
379 if (gr_draw == NULL) { in gr_init()
384 overscan_offset_x = gr_draw->width * overscan_percent / 100; in gr_init()
385 overscan_offset_y = gr_draw->height * overscan_percent / 100; in gr_init()
400 return gr_draw->width - 2*overscan_offset_x; in gr_fb_width()
405 return gr_draw->height - 2*overscan_offset_y; in gr_fb_height()