diff options
author | Ethan Yonker <dees_troy@teamw.in> | 2014-11-10 18:22:10 +0100 |
---|---|---|
committer | Ethan Yonker <dees_troy@teamw.in> | 2014-11-12 18:03:50 +0100 |
commit | bcc502cff9fea2d892a0344879e420df1d10fb47 (patch) | |
tree | 05b239cbc41d72372343f4dbe78ee0674b3ee146 /minui | |
parent | update theme thanks to Alexey71 on xda. (diff) | |
download | android_bootable_recovery-bcc502cff9fea2d892a0344879e420df1d10fb47.tar android_bootable_recovery-bcc502cff9fea2d892a0344879e420df1d10fb47.tar.gz android_bootable_recovery-bcc502cff9fea2d892a0344879e420df1d10fb47.tar.bz2 android_bootable_recovery-bcc502cff9fea2d892a0344879e420df1d10fb47.tar.lz android_bootable_recovery-bcc502cff9fea2d892a0344879e420df1d10fb47.tar.xz android_bootable_recovery-bcc502cff9fea2d892a0344879e420df1d10fb47.tar.zst android_bootable_recovery-bcc502cff9fea2d892a0344879e420df1d10fb47.zip |
Diffstat (limited to '')
-rw-r--r-- | minui/graphics.c | 2 | ||||
-rw-r--r-- | minuitwrp/graphics.c | 4 |
2 files changed, 3 insertions, 3 deletions
diff --git a/minui/graphics.c b/minui/graphics.c index 948a07c0f..3713f61de 100644 --- a/minui/graphics.c +++ b/minui/graphics.c @@ -175,7 +175,7 @@ static int get_framebuffer(GGLSurface *fb) fb->stride = fi.line_length/PIXEL_SIZE; fb->format = PIXEL_FORMAT; if (!has_overlay) { - fb->data = (void*) (((unsigned) bits) + vi.yres * fi.line_length); + fb->data = (void*) (((unsigned long) bits) + vi.yres * fi.line_length); memset(fb->data, 0, vi.yres * fi.line_length); } diff --git a/minuitwrp/graphics.c b/minuitwrp/graphics.c index 9926904ef..d08e74303 100644 --- a/minuitwrp/graphics.c +++ b/minuitwrp/graphics.c @@ -300,10 +300,10 @@ static int get_framebuffer(GGLSurface *fb) 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); + fb->data = (GGLubyte*) (((unsigned long) bits) + vi.yres * fi.line_length); #else fb->stride = vi.xres_virtual; - fb->data = (void*) (((unsigned) bits) + vi.yres * fb->stride * PIXEL_SIZE); + fb->data = (GGLubyte*) (((unsigned long) bits) + vi.yres * fb->stride * PIXEL_SIZE); #endif fb->format = PIXEL_FORMAT; if (!has_overlay) { |