summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael Drake <tlsa@netsurf-browser.org>2012-02-29 19:35:29 (GMT)
committer Michael Drake <tlsa@netsurf-browser.org>2012-02-29 19:35:29 (GMT)
commit4875d9f650071c8cd6d2976ea6f88f18bc8cc10b (patch)
treea16baccf9a3f904b8be4763dde8094177e09ab5e
parent4a09e708c0e7ddebd805a6eecaba720b89b039a0 (diff)
downloadlibnsfb-4875d9f650071c8cd6d2976ea6f88f18bc8cc10b.tar.gz
libnsfb-4875d9f650071c8cd6d2976ea6f88f18bc8cc10b.tar.bz2
A couple of casts through void to avoid pointer alignement warnings on ARM.
svn path=/trunk/libnsfb/; revision=13503
-rw-r--r--src/plot/api.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/plot/api.c b/src/plot/api.c
index 77559cb..2b5b974 100644
--- a/src/plot/api.c
+++ b/src/plot/api.c
@@ -148,7 +148,7 @@ nsfb_plot_copy(nsfb_t *srcfb,
}
if ((srcfb->width == 1) && (srcfb->height == 1)) {
- srccol = *(nsfb_colour_t *)(srcfb->ptr);
+ srccol = *(nsfb_colour_t *)(void *)(srcfb->ptr);
/* check for completely transparent */
if ((srccol & 0xff000000) == 0)
@@ -159,7 +159,7 @@ nsfb_plot_copy(nsfb_t *srcfb,
return dstfb->plotter_fns->fill(dstfb, dstbox, srccol);
}
- return dstfb->plotter_fns->bitmap(dstfb, dstbox, (const nsfb_colour_t *)srcfb->ptr, srcfb->width, srcfb->height, (srcfb->linelen * 8) / srcfb->bpp, trans);
+ return dstfb->plotter_fns->bitmap(dstfb, dstbox, (const nsfb_colour_t *)(void *)srcfb->ptr, srcfb->width, srcfb->height, (srcfb->linelen * 8) / srcfb->bpp, trans);
}