summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJames Bursa <james@netsurf-browser.org>2007-11-29 05:50:21 +0000
committerJames Bursa <james@netsurf-browser.org>2007-11-29 05:50:21 +0000
commitf386520ff275b34a64cc4068a690f749eae90f72 (patch)
tree517dd500bf189c1fd33341510e1dc5489c76120d
parentac084adfb2e1811fb19d66062b0e5cf5fb24382f (diff)
downloadnetsurf-f386520ff275b34a64cc4068a690f749eae90f72.tar.gz
netsurf-f386520ff275b34a64cc4068a690f749eae90f72.tar.bz2
Add empty path plotters to stop crashes.
svn path=/trunk/netsurf/; revision=3653
-rw-r--r--desktop/knockout.c15
-rw-r--r--riscos/save_draw.c12
2 files changed, 24 insertions, 3 deletions
diff --git a/desktop/knockout.c b/desktop/knockout.c
index c1f37444a..a0bf95854 100644
--- a/desktop/knockout.c
+++ b/desktop/knockout.c
@@ -51,6 +51,8 @@ static bool knockout_plot_rectangle(int x0, int y0, int width, int height,
static bool knockout_plot_line(int x0, int y0, int x1, int y1, int width,
colour c, bool dotted, bool dashed);
static bool knockout_plot_polygon(int *p, unsigned int n, colour fill);
+static bool knockout_plot_path(float *p, unsigned int n, colour fill,
+ float width, colour c, float *transform);
static bool knockout_plot_fill(int x0, int y0, int x1, int y1, colour c);
static bool knockout_plot_clip(int clip_x0, int clip_y0,
int clip_x1, int clip_y1);
@@ -82,7 +84,8 @@ const struct plotter_table knockout_plotters = {
knockout_plot_bitmap_tile,
knockout_plot_group_start,
knockout_plot_group_end,
- knockout_plot_flush
+ knockout_plot_flush,
+ knockout_plot_path,
};
@@ -238,7 +241,7 @@ bool knockout_plot_start(struct plotter_table *plotter)
/* check if we're recursing */
if (nested_depth++ > 0) {
/* we should already have the knockout renderer as default */
- assert(!memcmp(plotter, &knockout_plotters, sizeof(struct plotter_table)));
+ assert(!memcmp(plotter, &knockout_plotters, sizeof(struct plotter_table)));
return true;
}
@@ -685,6 +688,14 @@ bool knockout_plot_polygon(int *p, unsigned int n, colour fill)
}
+bool knockout_plot_path(float *p, unsigned int n, colour fill,
+ float width, colour c, float *transform)
+{
+ LOG(("knockout_plot_path not implemented"));
+ return false;
+}
+
+
bool knockout_plot_fill(int x0, int y0, int x1, int y1, colour c)
{
int kx0, ky0, kx1, ky1;
diff --git a/riscos/save_draw.c b/riscos/save_draw.c
index 91443d754..5f86764a3 100644
--- a/riscos/save_draw.c
+++ b/riscos/save_draw.c
@@ -42,6 +42,8 @@ static bool ro_save_draw_rectangle(int x0, int y0, int width, int height,
static bool ro_save_draw_line(int x0, int y0, int x1, int y1, int width,
colour c, bool dotted, bool dashed);
static bool ro_save_draw_polygon(int *p, unsigned int n, colour fill);
+static bool ro_save_draw_path(float *p, unsigned int n, colour fill,
+ float width, colour c, float *transform);
static bool ro_save_draw_fill(int x0, int y0, int x1, int y1, colour c);
static bool ro_save_draw_clip(int clip_x0, int clip_y0,
int clip_x1, int clip_y1);
@@ -75,7 +77,8 @@ const struct plotter_table ro_save_draw_plotters = {
ro_save_draw_bitmap_tile,
ro_save_draw_group_start,
ro_save_draw_group_end,
- NULL
+ NULL,
+ ro_save_draw_path,
};
struct pencil_diagram *ro_save_draw_diagram;
@@ -220,6 +223,13 @@ bool ro_save_draw_polygon(int *p, unsigned int n, colour fill)
}
+bool ro_save_draw_path(float *p, unsigned int n, colour fill,
+ float width, colour c, float *transform)
+{
+ return true;
+}
+
+
bool ro_save_draw_fill(int x0, int y0, int x1, int y1, colour c)
{
pencil_code code;