From fbf6d4cd4116dac4287403c52233f62bac88f3c0 Mon Sep 17 00:00:00 2001 From: John Tytgat Date: Tue, 3 Feb 2009 01:27:54 +0000 Subject: - Constify parameters of struct plotter_table::polygon and struct plotter_table::path - riscos/save_draw.c(ro_save_draw_plotters): Make it static. - desktop/save_pdf/pdf_plotters.c(pdf_plot_path): fix broken implementation (coordinates path were wrong, no clip/text mode update, transformation matrix was overwritten); only update fill and/or stroke color when fill and/or stroke is done. (pdf_begin): disable compression when PDF_DEBUG is set svn path=/trunk/netsurf/; revision=6361 --- amiga/plotters.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'amiga/plotters.h') diff --git a/amiga/plotters.h b/amiga/plotters.h index 0ed18c5ee..676493719 100755 --- a/amiga/plotters.h +++ b/amiga/plotters.h @@ -27,7 +27,7 @@ bool ami_rectangle(int x0, int y0, int width, int height, int line_width, colour c, bool dotted, bool dashed); bool ami_line(int x0, int y0, int x1, int y1, int width, colour c, bool dotted, bool dashed); -bool ami_polygon(int *p, unsigned int n, colour fill); +bool ami_polygon(const int *p, unsigned int n, colour fill); bool ami_fill(int x0, int y0, int x1, int y1, colour c); bool ami_clip(int x0, int y0, int x1, int y1); bool ami_text(int x, int y, const struct css_style *style, @@ -43,6 +43,6 @@ bool ami_bitmap_tile(int x, int y, int width, int height, bool ami_group_start(const char *name); bool ami_group_end(void); bool ami_flush(void); -bool ami_path(float *p, unsigned int n, colour fill, float width, - colour c, float *transform); +bool ami_path(const float *p, unsigned int n, colour fill, float width, + colour c, const float transform[6]); #endif -- cgit v1.2.3