diff options
author | Vincent Sanders <vince@netsurf-browser.org> | 2009-06-30 13:02:23 +0000 |
---|---|---|
committer | Vincent Sanders <vince@netsurf-browser.org> | 2009-06-30 13:02:23 +0000 |
commit | aa2684341170424783f9937d8fe441fb3984d825 (patch) | |
tree | b7b1adaf3867666f15d7bf9bacf804846372eff7 /desktop/plotters.h | |
parent | 38356d46ff15fe669c59bdf6aa96b7f4248d1b6a (diff) | |
download | netsurf-aa2684341170424783f9937d8fe441fb3984d825.tar.gz netsurf-aa2684341170424783f9937d8fe441fb3984d825.tar.bz2 |
Improve bitmap plotter API
svn path=/trunk/netsurf/; revision=8195
Diffstat (limited to 'desktop/plotters.h')
-rw-r--r-- | desktop/plotters.h | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/desktop/plotters.h b/desktop/plotters.h index 6d2b66783..8173168eb 100644 --- a/desktop/plotters.h +++ b/desktop/plotters.h @@ -30,6 +30,10 @@ struct bitmap; +typedef unsigned long bitmap_flags_t; +#define BITMAPF_NONE 0 +#define BITMAPF_REPEAT_X 1 +#define BITMAPF_REPEAT_Y 2 /** Set of target specific plotting functions. * @@ -108,10 +112,7 @@ struct plotter_table { bool (*arc)(int x, int y, int radius, int angle1, int angle2, colour c); bool (*bitmap)(int x, int y, int width, int height, struct bitmap *bitmap, colour bg, - struct content *content); - bool (*bitmap_tile)(int x, int y, int width, int height, - struct bitmap *bitmap, colour bg, - bool repeat_x, bool repeat_y, struct content *content); + bitmap_flags_t flags); bool (*group_start)(const char *name); /**< optional, may be NULL */ bool (*group_end)(void); /**< optional, may be NULL */ bool (*flush)(void); /**< optional, may be NULL */ |