From 224d882c03c9c08a021b1f1362869b8f1eea77ff Mon Sep 17 00:00:00 2001 From: Ole Loots Date: Tue, 3 Jan 2012 23:02:38 +0000 Subject: Fixed font plotter init and added flag for monochrom glyph rendering. svn path=/trunk/netsurf/; revision=13369 --- atari/plot/plotter.h | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) (limited to 'atari/plot/plotter.h') diff --git a/atari/plot/plotter.h b/atari/plot/plotter.h index 513eadfa1..d2d44c0d8 100755 --- a/atari/plot/plotter.h +++ b/atari/plot/plotter.h @@ -55,7 +55,10 @@ #define PLOT_FLAG_OFFSCREEN 0x01 /* offsreen plotter should set/accept this flag */ #define PLOT_FLAG_LOCKED 0x02 /* plotter should set this flag during screen updates */ #define PLOT_FLAG_DITHER 0x04 /* true if the plotter shall dither images */ -#define PLOT_FLAG_TRANS 0x08 /* true if the plotter supports transparent operations */ +#define PLOT_FLAG_TRANS 0x08 /* true if the plotter supports transparent operations */ + +/* Font Plotter flags: */ +#define FONTPLOT_FLAG_MONOGLYPH 0x01 /* Flags for init_mfdb function: */ #define MFDB_FLAG_STAND 0x01 @@ -84,7 +87,11 @@ typedef int (*_fpmf_pixel_pos)( FONT_PLOTTER self, const plot_font_style_t *fsty int x, size_t *char_offset, int *actual_x); typedef int (*_fpmf_text)( FONT_PLOTTER self, int x, int y, const char *text, size_t length, const plot_font_style_t *fstyle); + +typedef void (*_fpmf_draw_glyph)(FONT_PLOTTER self, GRECT * loc, uint8_t * pixdata, + int pitch, uint32_t colour); typedef int (*_fpmf_dtor)( FONT_PLOTTER self ); + /* prototype of the font plotter "object" */ struct s_font_plotter @@ -98,7 +105,8 @@ struct s_font_plotter _fpmf_str_width str_width; _fpmf_str_split str_split; _fpmf_pixel_pos pixel_pos; - _fpmf_text text; + _fpmf_text text; + _fpmf_draw_glyph draw_glyph; _fpmf_dtor dtor; }; -- cgit v1.2.3