summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael Drake <tlsa@netsurf-browser.org>2016-04-19 14:40:47 (GMT)
committer Michael Drake <tlsa@netsurf-browser.org>2016-04-19 14:40:47 (GMT)
commit0947868670e0466a62a0d7d8bb15f5a7e7ac5ea6 (patch)
treeeff401d1e462955f2cbc862be53fb14fc898bb97
parent60d5fb4c8f1c746a789b3e6a0765089187f4cd86 (diff)
downloadlibnsfb-0947868670e0466a62a0d7d8bb15f5a7e7ac5ea6.tar.gz
libnsfb-0947868670e0466a62a0d7d8bb15f5a7e7ac5ea6.tar.bz2
Fix variable name.
-rw-r--r--src/plot/32bpp-xbgr8888.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/src/plot/32bpp-xbgr8888.c b/src/plot/32bpp-xbgr8888.c
index a65719b..a0ed066 100644
--- a/src/plot/32bpp-xbgr8888.c
+++ b/src/plot/32bpp-xbgr8888.c
@@ -42,9 +42,7 @@ static inline nsfb_colour_t pixel_to_colour(UNUSED nsfb_t *nsfb, uint32_t pixel)
/* convert a colour value to a 32bpp pixel value ready for screen output */
static inline uint32_t colour_to_pixel(UNUSED nsfb_t *nsfb, nsfb_colour_t c)
{
- return ((pixel & 0xFF) << 24) |
- ((pixel & 0xFF00) << 8) |
- ((pixel & 0xFF0000) >> 8);
+ return ((c & 0xFF) << 24) | ((c & 0xFF00) << 8) | ((c & 0xFF0000) >> 8);
}
#else /* __BYTE_ORDER == __BIG_ENDIAN */
static inline nsfb_colour_t pixel_to_colour(UNUSED nsfb_t *nsfb, uint32_t pixel)