}
#endif
-__weak void fb_put_byte(uchar **fb, uchar **from)
-{
- *(*fb)++ = *(*from)++;
-}
-
-#if defined(CONFIG_BMP_16BPP)
-__weak void fb_put_word(uchar **fb, uchar **from)
-{
- *(*fb)++ = *(*from)++;
- *(*fb)++ = *(*from)++;
-}
-#endif /* CONFIG_BMP_16BPP */
-
/**
* video_splash_align_axis() - Align a single coordinate
*
WATCHDOG_RESET();
for (j = 0; j < width; j++) {
if (bpix == 8) {
- fb_put_byte(&fb, &bmap);
+ *fb++ = *bmap++;
} else if (bpix == 16) {
*(uint16_t *)fb = cmap_base[*bmap];
bmap++;
case 16:
for (i = 0; i < height; ++i) {
WATCHDOG_RESET();
- for (j = 0; j < width; j++)
- fb_put_word(&fb, &bmap);
-
+ for (j = 0; j < width; j++) {
+ *fb++ = *bmap++;
+ *fb++ = *bmap++;
+ }
bmap += (padded_width - width);
fb -= width * 2 + priv->line_length;
}