summaryrefslogtreecommitdiff
path: root/riscos/save_pdf.c
diff options
context:
space:
mode:
authorMichael Drake <tlsa@netsurf-browser.org>2010-04-07 17:29:40 +0000
committerMichael Drake <tlsa@netsurf-browser.org>2010-04-07 17:29:40 +0000
commit2975e1df84b011548a337e88214a9e7aaaa6d6ce (patch)
treebaff0b1859a571be9398fa759fbc1f85ce2e1c49 /riscos/save_pdf.c
parent95b859c2eb3223e2732d6ebd75f11906bdeda3ba (diff)
downloadnetsurf-2975e1df84b011548a337e88214a9e7aaaa6d6ce.tar.gz
netsurf-2975e1df84b011548a337e88214a9e7aaaa6d6ce.tar.bz2
Fix for new cache.
svn path=/trunk/netsurf/; revision=10280
Diffstat (limited to 'riscos/save_pdf.c')
-rw-r--r--riscos/save_pdf.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/riscos/save_pdf.c b/riscos/save_pdf.c
index 4d553637b..3d6395629 100644
--- a/riscos/save_pdf.c
+++ b/riscos/save_pdf.c
@@ -26,6 +26,7 @@
#include <stdbool.h>
#include "oslib/osfile.h"
#include "content/content.h"
+#include "content/hlcache.h"
#include "desktop/print.h"
#include "desktop/save_pdf/font_haru.h"
#include "desktop/save_pdf/pdf_plotters.h"
@@ -36,11 +37,11 @@
/**
* Export a content as a PDF file.
*
- * \param c content to export
+ * \param h content to export
* \param path path to save PDF as
* \return true on success, false on error and error reported
*/
-bool save_as_pdf(struct content *c, const char *path)
+bool save_as_pdf(hlcache_handle *h, const char *path)
{
struct print_settings *psettings;
@@ -48,7 +49,7 @@ bool save_as_pdf(struct content *c, const char *path)
if (psettings == NULL)
return false;
- if (!print_basic_run(c, &pdf_printer, psettings))
+ if (!print_basic_run(h, &pdf_printer, psettings))
return false;
xosfile_set_type(path, 0xadf);