Searched refs:fi (Results 1 – 1 of 1) sorted by relevance
/bootable/recovery/minui/ |
D | graphics.c | 70 static struct fb_fix_screeninfo fi; variable 124 if (ioctl(fd, FBIOGET_FSCREENINFO, &fi) < 0) { in get_framebuffer() 130 bits = mmap(0, fi.smem_len, PROT_READ | PROT_WRITE, MAP_SHARED, fd, 0); in get_framebuffer() 143 fb->stride = fi.line_length/PIXEL_SIZE; in get_framebuffer() 146 memset(fb->data, 0, vi.yres * fi.line_length); in get_framebuffer() 151 if (vi.yres * fi.line_length * 2 > fi.smem_len) in get_framebuffer() 159 fb->stride = fi.line_length/PIXEL_SIZE; in get_framebuffer() 160 fb->data = (void*) (((unsigned) bits) + vi.yres * fi.line_length); in get_framebuffer() 162 memset(fb->data, 0, vi.yres * fi.line_length); in get_framebuffer() 171 ms->stride = fi.line_length/PIXEL_SIZE; in get_memory_surface() [all …]
|