Framebuffer: Fix bitmap plotter return value.

Caused local history to give up after the first bitmap plot.
This commit is contained in:
Michael Drake 2017-06-10 16:11:49 +01:00
parent 4b9aaee6cd
commit c06cfd9fae

View File

@ -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);