diff options
author | Michael Drake <tlsa@netsurf-browser.org> | 2011-06-30 15:48:07 +0000 |
---|---|---|
committer | Michael Drake <tlsa@netsurf-browser.org> | 2011-06-30 15:48:07 +0000 |
commit | eddae6af0663243a2677674d501f9a87d55798f5 (patch) | |
tree | 08562171f870a6b592d624adfbfd0d6fa11fcdcb /desktop/print.c | |
parent | a5dc6b9e6637c85d18510ac6446ee4a8a7955e7b (diff) | |
download | netsurf-eddae6af0663243a2677674d501f9a87d55798f5.tar.gz netsurf-eddae6af0663243a2677674d501f9a87d55798f5.tar.bz2 |
Remove plotter table global. Pass a redraw context around redraw functions. Knockout could be handled better. Note: untested on most front ends.
svn path=/trunk/netsurf/; revision=12543
Diffstat (limited to 'desktop/print.c')
-rw-r--r-- | desktop/print.c | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/desktop/print.c b/desktop/print.c index 373c338fa..c6c361108 100644 --- a/desktop/print.c +++ b/desktop/print.c @@ -34,6 +34,7 @@ #include "render/box.h" #include "utils/log.h" #include "utils/talloc.h" +#include "utils/types.h" /* Default print settings */ #define DEFAULT_PAGE_WIDTH 595 @@ -123,8 +124,11 @@ bool print_draw_next_page(const struct printer *printer, { struct rect clip; struct content_redraw_data data; - - plot = *(printer->plotter); + struct redraw_context ctx = { + .interactive = false, + .plot = printer->plotter + }; + html_redraw_printing_top_cropped = INT_MAX; clip.x0 = 0; @@ -145,7 +149,7 @@ bool print_draw_next_page(const struct printer *printer, html_redraw_printing_border = clip.y1; printer->print_next_page(); - if (!content_redraw(printed_content, &data, &clip)) + if (!content_redraw(printed_content, &data, &clip, &ctx)) return false; done_height += page_content_height - |