diff options
Diffstat (limited to 'minuitwrp')
-rw-r--r-- | minuitwrp/graphics.c | 4 |
1 files changed, 2 insertions, 2 deletions
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) { |