summaryrefslogtreecommitdiffstats
path: root/minui/graphics.c
diff options
context:
space:
mode:
Diffstat (limited to 'minui/graphics.c')
-rw-r--r--minui/graphics.c2
1 files changed, 1 insertions, 1 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);
}