diff options
Diffstat (limited to 'apps/plugins/lib/gray.h')
-rw-r--r-- | apps/plugins/lib/gray.h | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/apps/plugins/lib/gray.h b/apps/plugins/lib/gray.h index 96dec346cf..398462fd81 100644 --- a/apps/plugins/lib/gray.h +++ b/apps/plugins/lib/gray.h | |||
@@ -38,7 +38,8 @@ | |||
38 | 38 | ||
39 | /* Library initialisation and release */ | 39 | /* Library initialisation and release */ |
40 | int gray_init(struct plugin_api* newrb, unsigned char *gbuf, long gbuf_size, | 40 | int gray_init(struct plugin_api* newrb, unsigned char *gbuf, long gbuf_size, |
41 | bool buffered, int width, int bheight, int depth, long *buf_taken); | 41 | bool buffered, int width, int bheight, int depth, int gamma, |
42 | long *buf_taken); | ||
42 | void gray_release(void); | 43 | void gray_release(void); |
43 | 44 | ||
44 | /* Special functions */ | 45 | /* Special functions */ |
@@ -138,9 +139,12 @@ struct _gray_info | |||
138 | #endif | 139 | #endif |
139 | unsigned char *cur_buffer; /* start of current chunky pixel buffer */ | 140 | unsigned char *cur_buffer; /* start of current chunky pixel buffer */ |
140 | unsigned char *back_buffer;/* start of chunky pixel back buffer */ | 141 | unsigned char *back_buffer;/* start of chunky pixel back buffer */ |
142 | unsigned char idxtable[256]; /* calculated brightness -> index translation table */ | ||
143 | int fg_index; /* current foreground index */ | ||
144 | int bg_index; /* current background index */ | ||
145 | int fg_brightness; /* current foreground brightness, for returning */ | ||
146 | int bg_brightness; /* current background brightness, for returning */ | ||
141 | int drawmode; /* current draw mode */ | 147 | int drawmode; /* current draw mode */ |
142 | int fg_brightness; /* current foreground brightness */ | ||
143 | int bg_brightness; /* current background brightness */ | ||
144 | int curfont; /* current selected font */ | 148 | int curfont; /* current selected font */ |
145 | }; | 149 | }; |
146 | 150 | ||