diff options
author | Michael Drake <tlsa@netsurf-browser.org> | 2011-04-19 12:32:24 +0000 |
---|---|---|
committer | Michael Drake <tlsa@netsurf-browser.org> | 2011-04-19 12:32:24 +0000 |
commit | 81ad700162a2fa639a69c1c6e3969ed8f7b3f63b (patch) | |
tree | 4b775337975e1891e9e57ce89ea5acc2918006a1 | |
parent | 02b57c267d23c5d01e0ca5e7965ffc1194034e17 (diff) | |
download | libnsfb-81ad700162a2fa639a69c1c6e3969ed8f7b3f63b.tar.gz libnsfb-81ad700162a2fa639a69c1c6e3969ed8f7b3f63b.tar.bz2 |
Commit fixes from "Building NetSurf on arm-linux framebuffer" thread on netsurf-users ML.
svn path=/trunk/libnsfb/; revision=12203
-rw-r--r-- | src/plot/16bpp.c | 2 | ||||
-rw-r--r-- | src/plot/32bpp.c | 2 |
2 files changed, 2 insertions, 2 deletions
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 |