From c7fab5b727863a54ef1bc5b30ba9ac805bbaaec0 Mon Sep 17 00:00:00 2001 From: John Mark Bell Date: Wed, 18 Aug 2004 22:07:20 +0000 Subject: [project @ 2004-08-18 22:07:20 by jmb] Don't read screen origin when printing svn path=/import/netsurf/; revision=1244 --- riscos/font.c | 13 +++++++++---- 1 file changed, 9 insertions(+), 4 deletions(-) diff --git a/riscos/font.c b/riscos/font.c index c56c85ad7..54b124921 100644 --- a/riscos/font.c +++ b/riscos/font.c @@ -674,10 +674,15 @@ void nsfont_paint(struct font_data *data, const char *text, assert(data != NULL); assert(text != NULL); - /* adjust by the origin */ - xos_read_vdu_variables((const os_vdu_var_list *)&var_input, (int *)&var_output); - xpos += var_output[0]; - ypos += var_output[1]; + /* adjust by the origin + * (not if printing as the result is undefined) + */ + if (!print_active) { + xos_read_vdu_variables((const os_vdu_var_list *)&var_input, + (int *)&var_output); + xpos += var_output[0]; + ypos += var_output[1]; + } switch (data->ftype) { -- cgit v1.2.3