summaryrefslogtreecommitdiff
path: root/include/nsfb.h
diff options
context:
space:
mode:
authorMichael Drake <tlsa@netsurf-browser.org>2012-09-27 13:46:10 +0100
committerMichael Drake <tlsa@netsurf-browser.org>2012-09-27 13:46:10 +0100
commit46f3c9ea3793d146337c81bf8858d99238c05e86 (patch)
tree7fd5c6aaeed21e01f8ea5565d9b65016f34657ec /include/nsfb.h
parent1983c37933d2a753c4c913527c94392682bf7b98 (diff)
downloadlibnsfb-46f3c9ea3793d146337c81bf8858d99238c05e86.tar.gz
libnsfb-46f3c9ea3793d146337c81bf8858d99238c05e86.tar.bz2
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.
Diffstat (limited to 'include/nsfb.h')
-rw-r--r--include/nsfb.h2
1 files changed, 1 insertions, 1 deletions
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. */