summaryrefslogtreecommitdiff
path: root/frontends
diff options
context:
space:
mode:
authorVincent Sanders <vince@kyllikki.org>2017-02-12 20:31:18 +0000
committerVincent Sanders <vince@kyllikki.org>2017-02-12 20:31:18 +0000
commit7b9fa8d7eb60950401065a81efffebd10d84309a (patch)
treea47839a1a7a6b1dace9f4b229b58899a2be070cd /frontends
parent1666944c7e5c7a300ad0658b9654464ff2c11495 (diff)
downloadnetsurf-7b9fa8d7eb60950401065a81efffebd10d84309a.tar.gz
netsurf-7b9fa8d7eb60950401065a81efffebd10d84309a.tar.bz2
fix plotter merge
Diffstat (limited to 'frontends')
-rw-r--r--frontends/beos/plotters.cpp8
-rw-r--r--frontends/gtk/scaffolding.c2
2 files changed, 5 insertions, 5 deletions
diff --git a/frontends/beos/plotters.cpp b/frontends/beos/plotters.cpp
index 6544d63bd..83a470d97 100644
--- a/frontends/beos/plotters.cpp
+++ b/frontends/beos/plotters.cpp
@@ -32,11 +32,11 @@
#include <View.h>
#include <Shape.h>
extern "C" {
-#include "netsurf/plotters.h"
#include "utils/log.h"
#include "utils/utils.h"
#include "utils/nsoption.h"
#include "utils/nsurl.h"
+#include "netsurf/plotters.h"
}
#include "beos/font.h"
#include "beos/gui.h"
@@ -400,7 +400,7 @@ nsbeos_plot_line(const struct redraw_context *ctx,
static nserror
nsbeos_plot_rectangle(const struct redraw_context *ctx,
const plot_style_t *style,
- const struct rect *rect)
+ const struct rect *nsrect)
{
if (style->fill_type != PLOT_OP_TYPE_NONE) {
BView *view;
@@ -413,7 +413,7 @@ nsbeos_plot_rectangle(const struct redraw_context *ctx,
nsbeos_set_colour(style->fill_colour);
- BRect rect(rect->x0, rect->y0, rect->x1 - 1, rect->y1 - 1);
+ BRect rect(nsrect->x0, nsrect->y0, nsrect->x1 - 1, nsrect->y1 - 1);
view->FillRect(rect);
//nsbeos_current_gc_unlock();
@@ -449,7 +449,7 @@ nsbeos_plot_rectangle(const struct redraw_context *ctx,
float pensize = view->PenSize();
view->SetPenSize(style->stroke_width);
- BRect rect(rect->x0, rect->y0, rect->x1, rect->y1);
+ BRect rect(nsrect->x0, nsrect->y0, nsrect->x1, nsrect->y1);
view->StrokeRect(rect, pat);
view->SetPenSize(pensize);
diff --git a/frontends/gtk/scaffolding.c b/frontends/gtk/scaffolding.c
index 06b51decc..de666c941 100644
--- a/frontends/gtk/scaffolding.c
+++ b/frontends/gtk/scaffolding.c
@@ -1673,7 +1673,7 @@ nsgtk_history_draw_event(GtkWidget *widget, cairo_t *cr, gpointer data)
clip.x1 = x2;
clip.y1 = y2;
- ctx.plot->clip(&clip);
+ ctx.plot->clip(&ctx, &clip);
browser_window_history_redraw(bw, &ctx);