From 81ad700162a2fa639a69c1c6e3969ed8f7b3f63b Mon Sep 17 00:00:00 2001 From: Michael Drake Date: Tue, 19 Apr 2011 12:32:24 +0000 Subject: Commit fixes from "Building NetSurf on arm-linux framebuffer" thread on netsurf-users ML. svn path=/trunk/libnsfb/; revision=12203 --- src/plot/16bpp.c | 2 +- src/plot/32bpp.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) (limited to 'src/plot') diff --git a/src/plot/16bpp.c b/src/plot/16bpp.c index 0badebe..d629944 100644 --- a/src/plot/16bpp.c +++ b/src/plot/16bpp.c @@ -69,7 +69,7 @@ static bool fill(nsfb_t *nsfb, nsfb_bbox_t *rect, nsfb_colour_t c) width = width >> 1; llen = (nsfb->linelen >> 2) - width; ent32 = ent16 | (ent16 << 16); - pvid32 = (uint32_t *)pvid16; + pvid32 = (void *)pvid16; while (height-- > 0) { w = width; diff --git a/src/plot/32bpp.c b/src/plot/32bpp.c index ff03ed6..aae1b39 100644 --- a/src/plot/32bpp.c +++ b/src/plot/32bpp.c @@ -23,7 +23,7 @@ static inline uint32_t *get_xy_loc(nsfb_t *nsfb, int x, int y) { - return (uint32_t *)(nsfb->ptr + (y * nsfb->linelen) + (x << 2)); + return (void *)(nsfb->ptr + (y * nsfb->linelen) + (x << 2)); } #if __BYTE_ORDER == __BIG_ENDIAN -- cgit v1.2.3