summaryrefslogtreecommitdiff
path: root/frontends/riscos/content-handlers
diff options
context:
space:
mode:
authorVincent Sanders <vince@kyllikki.org>2017-02-08 09:22:42 +0000
committerVincent Sanders <vince@kyllikki.org>2017-02-11 13:57:07 +0000
commit3ea137ca3d9b0f996493bb33289d9ab3fc2881bc (patch)
tree120feb9d39ff590aa4c9432b7df5f1304bebe410 /frontends/riscos/content-handlers
parent78d601eb76c796c038f42c2b9f10e4e591272271 (diff)
downloadnetsurf-3ea137ca3d9b0f996493bb33289d9ab3fc2881bc.tar.gz
netsurf-3ea137ca3d9b0f996493bb33289d9ab3fc2881bc.tar.bz2
update RISC OS plotters to new API
Diffstat (limited to 'frontends/riscos/content-handlers')
-rw-r--r--frontends/riscos/content-handlers/artworks.c2
-rw-r--r--frontends/riscos/content-handlers/draw.c2
-rw-r--r--frontends/riscos/content-handlers/sprite.c2
3 files changed, 3 insertions, 3 deletions
diff --git a/frontends/riscos/content-handlers/artworks.c b/frontends/riscos/content-handlers/artworks.c
index f70b10ac7..7a7d79cb7 100644
--- a/frontends/riscos/content-handlers/artworks.c
+++ b/frontends/riscos/content-handlers/artworks.c
@@ -317,7 +317,7 @@ bool artworks_redraw(struct content *c, struct content_redraw_data *data,
int clip_x1 = clip->x1;
int clip_y1 = clip->y1;
- if (ctx->plot->flush && !ctx->plot->flush())
+ if (ctx->plot->flush && (ctx->plot->flush(ctx) != NSERROR_OK))
return false;
/* pick up render addresses again in case they've changed
diff --git a/frontends/riscos/content-handlers/draw.c b/frontends/riscos/content-handlers/draw.c
index 9dff75736..0c84de866 100644
--- a/frontends/riscos/content-handlers/draw.c
+++ b/frontends/riscos/content-handlers/draw.c
@@ -184,7 +184,7 @@ bool draw_redraw(struct content *c, struct content_redraw_data *data,
const void *src_data;
os_error *error;
- if (ctx->plot->flush && !ctx->plot->flush())
+ if (ctx->plot->flush && (ctx->plot->flush(ctx) != NSERROR_OK))
return false;
if (!c->width || !c->height)
diff --git a/frontends/riscos/content-handlers/sprite.c b/frontends/riscos/content-handlers/sprite.c
index ed06110ec..02976e48e 100644
--- a/frontends/riscos/content-handlers/sprite.c
+++ b/frontends/riscos/content-handlers/sprite.c
@@ -180,7 +180,7 @@ bool sprite_redraw(struct content *c, struct content_redraw_data *data,
{
sprite_content *sprite = (sprite_content *) c;
- if (ctx->plot->flush && !ctx->plot->flush())
+ if (ctx->plot->flush && (ctx->plot->flush(ctx) != NSERROR_OK))
return false;
return image_redraw(sprite->data,