From c06cfd9fae6b0cbc82babf64fe2f6300e6cae1f9 Mon Sep 17 00:00:00 2001 From: Michael Drake Date: Sat, 10 Jun 2017 16:11:49 +0100 Subject: Framebuffer: Fix bitmap plotter return value. Caused local history to give up after the first bitmap plot. --- frontends/framebuffer/framebuffer.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/frontends/framebuffer/framebuffer.c b/frontends/framebuffer/framebuffer.c index 649862aa3..e1301ceed 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); -- cgit v1.2.3