diff options
author | Ole Loots <ole@monochrom.net> | 2011-03-13 21:46:59 +0000 |
---|---|---|
committer | Ole Loots <ole@monochrom.net> | 2011-03-13 21:46:59 +0000 |
commit | f2c97c39200d0d167e17d41f703bb91732901302 (patch) | |
tree | e897b91ac5e2bc36592f31ed545aaf400b1bd135 /atari/plot/plotter.h | |
parent | 0410a8ea557eeedc604b95bfcd251c4846e52cef (diff) | |
download | netsurf-f2c97c39200d0d167e17d41f703bb91732901302.tar.gz netsurf-f2c97c39200d0d167e17d41f703bb91732901302.tar.bz2 |
init_mfdb() is now able to handle bitmaps with less than 8 bits per pixel.
(needed for monochrom glyph rendering)
svn path=/trunk/netsurf/; revision=12038
Diffstat (limited to 'atari/plot/plotter.h')
-rwxr-xr-x | atari/plot/plotter.h | 23 |
1 files changed, 22 insertions, 1 deletions
diff --git a/atari/plot/plotter.h b/atari/plot/plotter.h index 78f75d7da..af3bce45e 100755 --- a/atari/plot/plotter.h +++ b/atari/plot/plotter.h @@ -291,9 +291,30 @@ 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);
-/* shared / static methods ... */
+/*
+ setup an MFDB struct and allocate memory for it when it is needed.
+ If bpp == 0, this function assumes that the MFDB shall point to the screen
+ and will not allocate any memory (mfdb.fd_addr == 0).
+ The function will return 0 when the memory allocation fails
+ ( out of memory).
+*/
+int init_mfdb(int bpp, int w, int h, bool stand, MFDB * out );
+
+/* shared / static methods follows */
+
+/*
+ Get clipping for current framebuffer
+*/
int plotter_get_clip( GEM_PLOTTER self, struct rect * out );
+
+/*
+ Set clipping for current framebuffer
+*/
int plotter_std_clip(GEM_PLOTTER self, const struct rect * clip);
+
+/*
+ convert framebuffer clipping to vdi clipping and activates it
+*/
void plotter_vdi_clip( GEM_PLOTTER self, bool set);
#define PLOTTER_IS_LOCKED(plotter) ( plotter->private_flags & PLOTTER_FLAG_LOCKED )
|