Lines Matching refs:gr_draw
43 static GRSurface* gr_draw = nullptr; variable
49 return x < 0 || x >= (swapped ? gr_draw->height : gr_draw->width) || y < 0 || in outside()
50 y >= (swapped ? gr_draw->width : gr_draw->height); in outside()
179 int row_pixels = gr_draw->row_bytes / gr_draw->pixel_bytes; in gr_text()
182 uint32_t* dst_p = PixelAt(gr_draw, x, y, row_pixels); in gr_text()
204 int row_pixels = gr_draw->row_bytes / gr_draw->pixel_bytes; in gr_texticon()
206 uint32_t* dst_p = PixelAt(gr_draw, x, y, row_pixels); in gr_texticon()
223 gr_draw->row_bytes == gr_draw->width * gr_draw->pixel_bytes) { in gr_clear()
224 memset(gr_draw->data(), gr_current & 0xff, gr_draw->height * gr_draw->row_bytes); in gr_clear()
226 uint32_t* px = reinterpret_cast<uint32_t*>(gr_draw->data()); in gr_clear()
227 int row_diff = gr_draw->row_bytes / gr_draw->pixel_bytes - gr_draw->width; in gr_clear()
228 for (int y = 0; y < gr_draw->height; ++y) { in gr_clear()
229 for (int x = 0; x < gr_draw->width; ++x) { in gr_clear()
246 int row_pixels = gr_draw->row_bytes / gr_draw->pixel_bytes; in gr_fill()
247 uint32_t* p = PixelAt(gr_draw, x1, y1, row_pixels); in gr_fill()
264 if (gr_draw->pixel_bytes != source->pixel_bytes) { in gr_blit()
276 int row_pixels = gr_draw->row_bytes / gr_draw->pixel_bytes; in gr_blit()
279 uint32_t* dst_py = PixelAt(gr_draw, dx, dy, row_pixels); in gr_blit()
293 uint8_t* dst_p = gr_draw->data() + dy * gr_draw->row_bytes + dx * gr_draw->pixel_bytes; in gr_blit()
298 dst_p += gr_draw->row_bytes; in gr_blit()
341 gr_draw = gr_backend->Flip(); in gr_flip()
366 gr_draw = backend->Init(); in gr_init()
368 if (!gr_draw) { in gr_init()
370 gr_draw = backend->Init(); in gr_init()
373 if (!gr_draw) { in gr_init()
375 gr_draw = backend->Init(); in gr_init()
378 if (!gr_draw) { in gr_init()
385 overscan_offset_x = gr_draw->width * overscan_percent / 100; in gr_init()
386 overscan_offset_y = gr_draw->height * overscan_percent / 100; in gr_init()
390 if (!gr_draw) { in gr_init()
407 if (gr_draw->pixel_bytes != 4) { in gr_init()
424 ? gr_draw->height - 2 * overscan_offset_y in gr_fb_width()
425 : gr_draw->width - 2 * overscan_offset_x; in gr_fb_width()
430 ? gr_draw->width - 2 * overscan_offset_x in gr_fb_height()
431 : gr_draw->height - 2 * overscan_offset_y; in gr_fb_height()