diff options
author | Ole Loots <ole@monochrom.net> | 2012-08-27 20:14:27 +0200 |
---|---|---|
committer | Ole Loots <ole@monochrom.net> | 2012-08-27 20:14:27 +0200 |
commit | b806c94c1d6c98cc3e5461f06032aacff6c00b42 (patch) | |
tree | 557b0c77449ee2a482a1ad7ba28af4e2e162eb7a /atari/plot/plot.h | |
parent | 02593d170a7163a141acf6f2f72686a7bdbfb828 (diff) | |
download | netsurf-b806c94c1d6c98cc3e5461f06032aacff6c00b42.tar.gz netsurf-b806c94c1d6c98cc3e5461f06032aacff6c00b42.tar.bz2 |
Fix warnings, moved prototypes, housekeeping
Diffstat (limited to 'atari/plot/plot.h')
-rwxr-xr-x | atari/plot/plot.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/atari/plot/plot.h b/atari/plot/plot.h index a5c76836a..53a2645f8 100755 --- a/atari/plot/plot.h +++ b/atari/plot/plot.h @@ -122,6 +122,12 @@ bool plot_copy_rect(GRECT src, GRECT dst); /* convert an vdi color to bgra */ void vdi1000_to_rgb( unsigned short * in, unsigned char * out ); +/* convert an bgra color to vdi1000 color */ +void rgb_to_vdi1000( unsigned char * in, unsigned short * out ); + +/* convert an rgb color to an index into the web palette */ +short rgb_to_666_index(unsigned char r, unsigned char g, unsigned char b); + /* assign vdi line style to dst ( netsurf type ) */
#define NSLT2VDI(dst, src) \
dst = 0;\
|