summaryrefslogtreecommitdiff
path: root/riscos/plotters.c
diff options
context:
space:
mode:
authorAdrian Lees <adrian@aemulor.com>2005-07-16 05:54:45 +0000
committerAdrian Lees <adrian@aemulor.com>2005-07-16 05:54:45 +0000
commit4a5dc6d5ccafcf0cb2efc656011e1ce693c511cb (patch)
tree494d085d5fab504c1ccd4c70ee5d0eca9a1822c4 /riscos/plotters.c
parent46bc8ca1541d80b272e2ef0cbb499a4cb1bea659 (diff)
downloadnetsurf-4a5dc6d5ccafcf0cb2efc656011e1ce693c511cb.tar.gz
netsurf-4a5dc6d5ccafcf0cb2efc656011e1ce693c511cb.tar.bz2
[project @ 2005-07-16 05:54:45 by adrianl]
Thumbnails displayed and dragged for full page save; spelling correction svn path=/import/netsurf/; revision=1793
Diffstat (limited to 'riscos/plotters.c')
-rw-r--r--riscos/plotters.c56
1 files changed, 13 insertions, 43 deletions
diff --git a/riscos/plotters.c b/riscos/plotters.c
index 8b3a5a80b..b1148b85a 100644
--- a/riscos/plotters.c
+++ b/riscos/plotters.c
@@ -233,6 +233,7 @@ bool ro_plot_clip(int clip_x0, int clip_y0,
int clip_x1, int clip_y1)
{
os_error *error;
+ char buf[12];
clip_x0 = ro_plot_origin_x + clip_x0 * 2;
clip_y0 = ro_plot_origin_y - clip_y0 * 2 - 1;
@@ -245,50 +246,19 @@ bool ro_plot_clip(int clip_x0, int clip_y0,
return false;
}
- error = xos_set_graphics_window();
+ buf[0] = os_VDU_SET_GRAPHICS_WINDOW;
+ buf[1] = clip_x0;
+ buf[2] = clip_x0 >> 8;
+ buf[3] = clip_y1;
+ buf[4] = clip_y1 >> 8;
+ buf[5] = clip_x1;
+ buf[6] = clip_x1 >> 8;
+ buf[7] = clip_y0;
+ buf[8] = clip_y0 >> 8;
+
+ error = xos_writen(buf, 9);
if (error) {
- LOG(("xos_set_graphics_window: 0x%x: %s", error->errnum,
- error->errmess));
- return false;
- }
- error = xos_writec((char) (clip_x0 & 0xff));
- if (error) {
- LOG(("xos_writec: 0x%x: %s", error->errnum, error->errmess));
- return false;
- }
- error = xos_writec((char) (clip_x0 >> 8));
- if (error) {
- LOG(("xos_writec: 0x%x: %s", error->errnum, error->errmess));
- return false;
- }
- error = xos_writec((char) (clip_y1 & 0xff));
- if (error) {
- LOG(("xos_writec: 0x%x: %s", error->errnum, error->errmess));
- return false;
- }
- error = xos_writec((char) (clip_y1 >> 8));
- if (error) {
- LOG(("xos_writec: 0x%x: %s", error->errnum, error->errmess));
- return false;
- }
- error = xos_writec((char) (clip_x1 & 0xff));
- if (error) {
- LOG(("xos_writec: 0x%x: %s", error->errnum, error->errmess));
- return false;
- }
- error = xos_writec((char) (clip_x1 >> 8));
- if (error) {
- LOG(("xos_writec: 0x%x: %s", error->errnum, error->errmess));
- return false;
- }
- error = xos_writec((char) (clip_y0 & 0xff));
- if (error) {
- LOG(("xos_writec: 0x%x: %s", error->errnum, error->errmess));
- return false;
- }
- error = xos_writec((char) (clip_y0 >> 8));
- if (error) {
- LOG(("xos_writec: 0x%x: %s", error->errnum, error->errmess));
+ LOG(("xos_writen: 0x%x: %s", error->errnum, error->errmess));
return false;
}