From 64b672a4813ba24b1c19534841d9fb3847b2ab9e Mon Sep 17 00:00:00 2001 From: jt1134 Date: Mon, 21 Jan 2013 20:15:11 -0600 Subject: recovery: graphics.c: remove dead code and change font to roboto Change-Id: I34746cd13b95264cc4ab7f42145474ee007de8e4 --- recovery/graphics.c | 25 +------------------------ 1 file changed, 1 insertion(+), 24 deletions(-) diff --git a/recovery/graphics.c b/recovery/graphics.c index 87e4e29..7af58bc 100644 --- a/recovery/graphics.c +++ b/recovery/graphics.c @@ -29,11 +29,7 @@ #include -#ifndef BOARD_LDPI_RECOVERY - #include "font_10x18.h" -#else - #include "font_7x16.h" -#endif +#include "roboto_10x18.h" #include "minui.h" @@ -90,11 +86,7 @@ static int get_framebuffer(GGLSurface *fb) fb->version = sizeof(*fb); fb->width = vi.xres; fb->height = vi.yres; -#ifdef BOARD_HAS_JANKY_BACKBUFFER - fb->stride = fi.line_length/2; -#else fb->stride = vi.xres; -#endif fb->data = bits; fb->format = GGL_PIXEL_FORMAT_RGB_565; memset(fb->data, 0, vi.yres * vi.xres * 2); @@ -104,13 +96,8 @@ static int get_framebuffer(GGLSurface *fb) fb->version = sizeof(*fb); fb->width = vi.xres; fb->height = vi.yres; -#ifdef BOARD_HAS_JANKY_BACKBUFFER - fb->stride = fi.line_length/2; - fb->data = (void*) (((unsigned) bits) + vi.yres * fi.line_length); -#else fb->stride = vi.xres; fb->data = (void*) (((unsigned) bits) + vi.yres * vi.xres * 2); -#endif fb->format = GGL_PIXEL_FORMAT_RGB_565; memset(fb->data, 0, vi.yres * vi.xres * 2); @@ -144,16 +131,6 @@ void gr_flip(void) /* swap front and back buffers */ gr_active_fb = (gr_active_fb + 1) & 1; -#ifdef BOARD_HAS_FLIPPED_SCREEN - /* flip buffer 180 degrees for devices with physicaly inverted screens */ - unsigned int i; - for (i = 1; i < (vi.xres * vi.yres); i++) { - unsigned short tmp = gr_mem_surface.data[i]; - gr_mem_surface.data[i] = gr_mem_surface.data[(vi.xres * vi.yres * 2) - i]; - gr_mem_surface.data[(vi.xres * vi.yres * 2) - i] = tmp; - } -#endif - /* copy data from the in-memory surface to the buffer we're about * to make active. */ memcpy(gr_framebuffer[gr_active_fb].data, gr_mem_surface.data, -- cgit v1.1