summaryrefslogtreecommitdiff
path: root/riscos
diff options
context:
space:
mode:
authorJohn Mark Bell <jmb@netsurf-browser.org>2004-08-18 22:07:20 +0000
committerJohn Mark Bell <jmb@netsurf-browser.org>2004-08-18 22:07:20 +0000
commitc7fab5b727863a54ef1bc5b30ba9ac805bbaaec0 (patch)
tree323c0117cba6e609f31463e5f8c19ca4e3453b19 /riscos
parentd1eb18f62ef6162a61fe4531faaff5fafc458604 (diff)
downloadnetsurf-c7fab5b727863a54ef1bc5b30ba9ac805bbaaec0.tar.gz
netsurf-c7fab5b727863a54ef1bc5b30ba9ac805bbaaec0.tar.bz2
[project @ 2004-08-18 22:07:20 by jmb]
Don't read screen origin when printing svn path=/import/netsurf/; revision=1244
Diffstat (limited to 'riscos')
-rw-r--r--riscos/font.c13
1 files 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) {