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 --- beos/beos_plotters.cpp | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'beos/beos_plotters.cpp') diff --git a/beos/beos_plotters.cpp b/beos/beos_plotters.cpp index 07f3ff5c6..b571c2447 100644 --- a/beos/beos_plotters.cpp +++ b/beos/beos_plotters.cpp @@ -66,9 +66,9 @@ static bool nsbeos_plot_rectangle(int x0, int y0, int width, int height, int line_width, colour c, bool dotted, bool dashed); static bool nsbeos_plot_line(int x0, int y0, int x1, int y1, int width, colour c, bool dotted, bool dashed); -static bool nsbeos_plot_polygon(int *p, unsigned int n, colour fill); -static bool nsbeos_plot_path(float *p, unsigned int n, colour fill, float width, - colour c, float *transform); +static bool nsbeos_plot_polygon(const int *p, unsigned int n, colour fill); +static bool nsbeos_plot_path(const float *p, unsigned int n, colour fill, float width, + colour c, const float transform[6]); static bool nsbeos_plot_fill(int x0, int y0, int x1, int y1, colour c); static bool nsbeos_plot_clip(int clip_x0, int clip_y0, int clip_x1, int clip_y1); @@ -261,7 +261,7 @@ bool nsbeos_plot_line(int x0, int y0, int x1, int y1, int width, } -bool nsbeos_plot_polygon(int *p, unsigned int n, colour fill) +bool nsbeos_plot_polygon(const int *p, unsigned int n, colour fill) { unsigned int i; BView *view; @@ -709,8 +709,8 @@ printf("plot_tile: -> %dx%d\n", width, height); return true; } -bool nsbeos_plot_path(float *p, unsigned int n, colour fill, float width, - colour c, float *transform) +bool nsbeos_plot_path(const float *p, unsigned int n, colour fill, float width, + colour c, const float transform[6]) { unsigned int i; -- cgit v1.2.3