From 46f3c9ea3793d146337c81bf8858d99238c05e86 Mon Sep 17 00:00:00 2001 From: Michael Drake Date: Thu, 27 Sep 2012 13:46:10 +0100 Subject: Add palette object. Optimise matching colour in case where we chose the palette. In other cases, we still have to seach all the colours, but that doesn't ever seem to be used. --- include/nsfb.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'include/nsfb.h') diff --git a/include/nsfb.h b/include/nsfb.h index 5caff9b..9a61775 100644 --- a/include/nsfb.h +++ b/include/nsfb.h @@ -28,7 +28,7 @@ struct nsfb_s { uint8_t *ptr; /**< Base of video memory. */ int linelen; /**< length of a video line. */ - nsfb_colour_t palette[256]; /**< palette for index modes */ + struct nsfb_palette_s *palette; /**< palette for index modes */ nsfb_cursor_t *cursor; /**< cursor */ struct nsfb_surface_rtns_s *surface_rtns; /**< surface routines. */ -- cgit v1.2.3