summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael Drake <tlsa@netsurf-browser.org>2017-06-10 15:11:49 (GMT)
committer Michael Drake <tlsa@netsurf-browser.org>2017-06-10 15:11:49 (GMT)
commitc06cfd9fae6b0cbc82babf64fe2f6300e6cae1f9 (patch)
tree61902d53f54bacc1d1d6e2f73f909ce9fc67b14d
parent4b9aaee6cdfe9d38683db75ca0de52f45045596a (diff)
downloadnetsurf-c06cfd9fae6b0cbc82babf64fe2f6300e6cae1f9.tar.gz
netsurf-c06cfd9fae6b0cbc82babf64fe2f6300e6cae1f9.tar.bz2
Framebuffer: Fix bitmap plotter return value.
Caused local history to give up after the first bitmap plot.
-rw-r--r--frontends/framebuffer/framebuffer.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/frontends/framebuffer/framebuffer.c b/frontends/framebuffer/framebuffer.c
index 649862a..e1301ce 100644
--- a/frontends/framebuffer/framebuffer.c
+++ b/frontends/framebuffer/framebuffer.c
@@ -333,7 +333,9 @@ framebuffer_plot_bitmap(const struct redraw_context *ctx,
loc.x1 = loc.x0 + width;
loc.y1 = loc.y0 + height;
- return nsfb_plot_copy(bm, NULL, nsfb, &loc);
+ if (!nsfb_plot_copy(bm, NULL, nsfb, &loc)) {
+ return NSERROR_INVALID;
+ }
}
nsfb_plot_get_clip(nsfb, &clipbox);