From aa2684341170424783f9937d8fe441fb3984d825 Mon Sep 17 00:00:00 2001 From: Vincent Sanders Date: Tue, 30 Jun 2009 13:02:23 +0000 Subject: Improve bitmap plotter API svn path=/trunk/netsurf/; revision=8195 --- riscos/print.c | 46 +++++++++++++++++++--------------------------- 1 file changed, 19 insertions(+), 27 deletions(-) (limited to 'riscos/print.c') diff --git a/riscos/print.c b/riscos/print.c index 7cd391a58..a663b3d1c 100644 --- a/riscos/print.c +++ b/riscos/print.c @@ -114,10 +114,7 @@ static bool print_fonts_plot_arc(int x, int y, int radius, int angle1, int angle colour c); static bool print_fonts_plot_bitmap(int x, int y, int width, int height, struct bitmap *bitmap, colour bg, - struct content *content); -static bool print_fonts_plot_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); static bool print_fonts_plot_path(const float *p, unsigned int n, colour fill, float width, colour c, const float transform[6]); static void print_fonts_callback(void *context, @@ -129,22 +126,18 @@ static void print_fonts_callback(void *context, /** Plotter for print_declare_fonts(). All the functions do nothing except for * print_fonts_plot_text, which records the fonts used. */ static const struct plotter_table print_fonts_plotters = { - print_fonts_plot_clg, - print_fonts_plot_rectangle, - print_fonts_plot_line, - print_fonts_plot_polygon, - print_fonts_plot_fill, - print_fonts_plot_clip, - print_fonts_plot_text, - print_fonts_plot_disc, - print_fonts_plot_arc, - print_fonts_plot_bitmap, - print_fonts_plot_bitmap_tile, - NULL, - NULL, - NULL, - print_fonts_plot_path, - false + .clg = print_fonts_plot_clg, + .rectangle = print_fonts_plot_rectangle, + .line = print_fonts_plot_line, + .polygon = print_fonts_plot_polygon, + .fill = print_fonts_plot_fill, + .clip = print_fonts_plot_clip, + .text = print_fonts_plot_text, + .disc = print_fonts_plot_disc, + .arc = print_fonts_plot_arc, + .bitmap = print_fonts_plot_bitmap, + .path = print_fonts_plot_path, + .option_knockout = false, }; @@ -838,32 +831,31 @@ bool print_fonts_plot_fill(int x0, int y0, int x1, int y1, colour c) { return true; } + bool print_fonts_plot_clip(int clip_x0, int clip_y0, int clip_x1, int clip_y1) { return true; } + bool print_fonts_plot_disc(int x, int y, int radius, colour colour, bool filled) { return true; } + bool print_fonts_plot_arc(int x, int y, int radius, int angle1, int angle2, colour c) { return true; } + bool print_fonts_plot_bitmap(int x, int y, int width, int height, - struct bitmap *bitmap, colour bg, struct content *content) -{ - return true; -} -bool print_fonts_plot_bitmap_tile(int x, int y, int width, int height, - struct bitmap *bitmap, colour bg, - bool repeat_x, bool repeat_y, struct content *content) + struct bitmap *bitmap, colour bg, bitmap_flags_t flags) { return true; } + bool print_fonts_plot_path(const float *p, unsigned int n, colour fill, float width, colour c, const float transform[6]) { -- cgit v1.2.3