summaryrefslogtreecommitdiff
path: root/src/plot/8bpp.c
diff options
context:
space:
mode:
authorMichael Drake <tlsa@netsurf-browser.org>2012-09-28 11:19:34 +0100
committerMichael Drake <tlsa@netsurf-browser.org>2012-09-28 11:19:34 +0100
commit0804bb7e067e66d4b05a6c45f9736b1e20505b96 (patch)
treee6b5e4ac559963dd0767e2ed39c878202f056c0f /src/plot/8bpp.c
parent46f3c9ea3793d146337c81bf8858d99238c05e86 (diff)
downloadlibnsfb-0804bb7e067e66d4b05a6c45f9736b1e20505b96.tar.gz
libnsfb-0804bb7e067e66d4b05a6c45f9736b1e20505b96.tar.bz2
Add error diffusion to palette based rendering. Only used for bitmap and scaled bitmap plots. Doesn't do serpentine path, since that would need changes to the common bitmap rendering code.
Diffstat (limited to 'src/plot/8bpp.c')
-rw-r--r--src/plot/8bpp.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/plot/8bpp.c b/src/plot/8bpp.c
index 05574d8..0245542 100644
--- a/src/plot/8bpp.c
+++ b/src/plot/8bpp.c
@@ -39,7 +39,7 @@ static uint8_t colour_to_pixel(nsfb_t *nsfb, nsfb_colour_t c)
if (nsfb->palette == NULL)
return 0;
- return nsfb_palette_best_match(nsfb->palette, c);
+ return nsfb_palette_best_match_dither(nsfb->palette, c);
}
#define PLOT_TYPE uint8_t