diff options
Diffstat (limited to 'src/plot/32bpp-xbgr8888.c')
-rw-r--r-- | src/plot/32bpp-xbgr8888.c | 15 |
1 files changed, 8 insertions, 7 deletions
diff --git a/src/plot/32bpp-xbgr8888.c b/src/plot/32bpp-xbgr8888.c index 9050903..07613ff 100644 --- a/src/plot/32bpp-xbgr8888.c +++ b/src/plot/32bpp-xbgr8888.c @@ -18,36 +18,37 @@ #include "nsfb.h" #include "plot.h" - -#define UNUSED __attribute__((unused)) - static inline uint32_t *get_xy_loc(nsfb_t *nsfb, int x, int y) { return (void *)(nsfb->ptr + (y * nsfb->linelen) + (x << 2)); } #if __BYTE_ORDER == __BIG_ENDIAN -static inline nsfb_colour_t pixel_to_colour(UNUSED nsfb_t *nsfb, uint32_t pixel) +static inline nsfb_colour_t pixel_to_colour(nsfb_t *nsfb, uint32_t pixel) { + UNUSED(nsfb); /* TODO: FIX */ return (pixel >> 8) & ~0xFF000000U; } /* 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) +static inline uint32_t colour_to_pixel(nsfb_t *nsfb, nsfb_colour_t c) { + UNUSED(nsfb); /* TODO: FIX */ return (c << 8); } #else /* __BYTE_ORDER == __BIG_ENDIAN */ -static inline nsfb_colour_t pixel_to_colour(UNUSED nsfb_t *nsfb, uint32_t pixel) +static inline nsfb_colour_t pixel_to_colour(nsfb_t *nsfb, uint32_t pixel) { + UNUSED(nsfb); return pixel | 0xFF000000U; } /* 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) +static inline uint32_t colour_to_pixel(nsfb_t *nsfb, nsfb_colour_t c) { + UNUSED(nsfb); return c; } #endif |