diff options
author | Michael Drake <tlsa@netsurf-browser.org> | 2012-09-30 09:40:46 +0100 |
---|---|---|
committer | Michael Drake <tlsa@netsurf-browser.org> | 2012-09-30 09:40:46 +0100 |
commit | 480b2353d815540dca310edc8496da1d3f1b3295 (patch) | |
tree | 1103a068d8674cca5c38047f172ba1167cafde74 /src/plot/generic.c | |
parent | 1fbc4a8b2dfc030f174aaf475f7ea6820864d1a3 (diff) | |
download | libnsfb-480b2353d815540dca310edc8496da1d3f1b3295.tar.gz libnsfb-480b2353d815540dca310edc8496da1d3f1b3295.tar.bz2 |
Split 32bpp support into xrgba, xbgr, and common. Should allow for BGR surfaces as well as RGB.
Diffstat (limited to 'src/plot/generic.c')
-rw-r--r-- | src/plot/generic.c | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/src/plot/generic.c b/src/plot/generic.c index 6a627ff..0c3d9e8 100644 --- a/src/plot/generic.c +++ b/src/plot/generic.c @@ -28,7 +28,8 @@ extern const nsfb_plotter_fns_t _nsfb_1bpp_plotters; extern const nsfb_plotter_fns_t _nsfb_8bpp_plotters; extern const nsfb_plotter_fns_t _nsfb_16bpp_plotters; extern const nsfb_plotter_fns_t _nsfb_24bpp_plotters; -extern const nsfb_plotter_fns_t _nsfb_32bpp_plotters; +extern const nsfb_plotter_fns_t _nsfb_32bpp_xrgb8888_plotters; +extern const nsfb_plotter_fns_t _nsfb_32bpp_xbgr8888_plotters; static bool set_clip(nsfb_t *nsfb, nsfb_bbox_t *clip) { @@ -860,13 +861,13 @@ bool select_plotters(nsfb_t *nsfb) case NSFB_FMT_XBGR8888: /* 32bpp Unused Blue Green Red */ case NSFB_FMT_ABGR8888: /* 32bpp Alpha Blue Green Red */ - table = &_nsfb_32bpp_plotters; + table = &_nsfb_32bpp_xbgr8888_plotters; nsfb->bpp = 32; break; case NSFB_FMT_XRGB8888: /* 32bpp Unused Red Green Blue */ case NSFB_FMT_ARGB8888: /* 32bpp Alpha Red Green Blue */ - table = &_nsfb_32bpp_plotters; + table = &_nsfb_32bpp_xrgb8888_plotters; nsfb->bpp = 32; break; |