diff options
author | Richard Wilson <rjw@netsurf-browser.org> | 2005-04-12 19:11:35 +0000 |
---|---|---|
committer | Richard Wilson <rjw@netsurf-browser.org> | 2005-04-12 19:11:35 +0000 |
commit | 4ebe390f8d02013035fd884836dcb8a75ac5efbd (patch) | |
tree | a7678798d5587845dd36c93c42cfdfba6d3acee3 /riscos/plotters.c | |
parent | e08d9e7263fe23168d68b532f07403282e18d3c4 (diff) | |
download | netsurf-4ebe390f8d02013035fd884836dcb8a75ac5efbd.tar.gz netsurf-4ebe390f8d02013035fd884836dcb8a75ac5efbd.tar.bz2 |
[project @ 2005-04-12 19:11:35 by rjw]
Work around the stupid manner in which the FontManager only observes the plot origin for non-anti-aliased text operations.
svn path=/import/netsurf/; revision=1626
Diffstat (limited to 'riscos/plotters.c')
-rw-r--r-- | riscos/plotters.c | 23 |
1 files changed, 3 insertions, 20 deletions
diff --git a/riscos/plotters.c b/riscos/plotters.c index dad6b74e4..a017c12c8 100644 --- a/riscos/plotters.c +++ b/riscos/plotters.c @@ -299,10 +299,6 @@ bool ro_plot_clip(int clip_x0, int clip_y0, bool ro_plot_text(int x, int y, struct css_style *style, const char *text, size_t length, colour bg, colour c) { - const os_VDU_VAR_LIST(3) var_list = { { os_VDUVAR_ORGX, os_VDUVAR_ORGY, - os_VDUVAR_END_LIST } }; - int value_list[3]; - int dx = 0, dy = 0; os_error *error; error = xcolourtrans_set_font_colours(font_CURRENT, @@ -312,23 +308,10 @@ bool ro_plot_text(int x, int y, struct css_style *style, error->errnum, error->errmess)); return false; } - - /* adjust by the origin (not if printing as the result is undefined) */ - if (!print_active) { - error = xos_read_vdu_variables((const os_vdu_var_list *) - &var_list, value_list); - if (error) { - LOG(("xos_read_vdu_variables: 0x%x: %s", - error->errnum, error->errmess)); - return false; - } - dx = value_list[0]; - dy = value_list[1]; - } - + return nsfont_paint(style, text, length, - ro_plot_origin_x + dx + x * 2, - ro_plot_origin_y + dy - y * 2, + ro_plot_origin_x + x * 2, + ro_plot_origin_y - y * 2, ro_plot_scale); } |