Searched refs:gr_draw (Results 1 – 2 of 2) sorted by relevance
/bootable/recovery/minui/ |
D | graphics_fbdev.cpp | 43 static GRSurface* gr_draw = NULL; variable 147 gr_draw = gr_framebuffer+1; in fbdev_init() 156 gr_draw = (GRSurface*) malloc(sizeof(GRSurface)); in fbdev_init() 157 memcpy(gr_draw, gr_framebuffer, sizeof(GRSurface)); in fbdev_init() 158 gr_draw->data = (unsigned char*) malloc(gr_draw->height * gr_draw->row_bytes); in fbdev_init() 159 if (!gr_draw->data) { in fbdev_init() 165 memset(gr_draw->data, 0, gr_draw->height * gr_draw->row_bytes); in fbdev_init() 169 printf("framebuffer: %d (%d x %d)\n", fb_fd, gr_draw->width, gr_draw->height); in fbdev_init() 174 return gr_draw; in fbdev_init() 183 unsigned char* ucfb_vaddr = (unsigned char*)gr_draw->data; in fbdev_flip() [all …]
|
D | graphics.cpp | 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() [all …]
|