diff options
author | John Tytgat <joty@netsurf-browser.org> | 2009-02-02 00:22:44 +0000 |
---|---|---|
committer | John Tytgat <joty@netsurf-browser.org> | 2009-02-02 00:22:44 +0000 |
commit | 57124b7f9258057c0b904afdb9d1cbe97aa0b32c (patch) | |
tree | c9345644f3efcb6a7db76baf4747b425e38c0f04 /desktop/save_pdf/pdf_plotters.c | |
parent | 15e8ba0270fac14839fd4dda65418904bfd0c880 (diff) | |
download | netsurf-57124b7f9258057c0b904afdb9d1cbe97aa0b32c.tar.gz netsurf-57124b7f9258057c0b904afdb9d1cbe97aa0b32c.tar.bz2 |
Unexport pdf_scale variable (use pdf_set_scale to set it) and initialize it to DEFAULT_EXPORT_SCALE.
svn path=/trunk/netsurf/; revision=6350
Diffstat (limited to 'desktop/save_pdf/pdf_plotters.c')
-rw-r--r-- | desktop/save_pdf/pdf_plotters.c | 11 |
1 files changed, 4 insertions, 7 deletions
diff --git a/desktop/save_pdf/pdf_plotters.c b/desktop/save_pdf/pdf_plotters.c index 5623416dc..6457a7378 100644 --- a/desktop/save_pdf/pdf_plotters.c +++ b/desktop/save_pdf/pdf_plotters.c @@ -124,7 +124,7 @@ const struct printer pdf_printer = { pdf_end }; -float pdf_scale; +static float pdf_scale = DEFAULT_EXPORT_SCALE; static char *owner_pass; static char *user_pass; @@ -288,12 +288,7 @@ bool pdf_plot_text(int x, int y, const struct css_style *style, else size = css_len2pt(&style->font_size.value.length, style); - /*this can be removed when export options get added for riscos*/ -#ifdef riscos - size *= DEFAULT_EXPORT_SCALE; -#else size *= pdf_scale; -#endif if (size <= 0) return true; @@ -812,7 +807,9 @@ void pdf_plot_grid(int x_dist, int y_dist, unsigned int colour) } #endif -/**used to synch the text scale with the scale for the whole content*/ +/** + * Sync the text scale with the scale for the whole content + */ void pdf_set_scale(float s) { pdf_scale = s; |