From 480b2353d815540dca310edc8496da1d3f1b3295 Mon Sep 17 00:00:00 2001 From: Michael Drake Date: Sun, 30 Sep 2012 09:40:46 +0100 Subject: Split 32bpp support into xrgba, xbgr, and common. Should allow for BGR surfaces as well as RGB. --- src/plot/generic.c | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'src/plot/generic.c') 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; -- cgit v1.2.3