summaryrefslogtreecommitdiff
path: root/src/main/escp2-driver.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/main/escp2-driver.c')
-rw-r--r--src/main/escp2-driver.c14
1 files changed, 10 insertions, 4 deletions
diff --git a/src/main/escp2-driver.c b/src/main/escp2-driver.c
index a680048..845a7a1 100644
--- a/src/main/escp2-driver.c
+++ b/src/main/escp2-driver.c
@@ -1,5 +1,5 @@
/*
- * "$Id: escp2-driver.c,v 1.27 2006/01/06 22:10:41 rlk Exp $"
+ * "$Id: escp2-driver.c,v 1.28 2006/04/30 21:29:52 rlk Exp $"
*
* Print plug-in EPSON ESC/P2 driver for the GIMP.
*
@@ -244,9 +244,16 @@ escp2_set_remote_sequence(stp_vars_t *v)
/* These commands do not appear to do anything on the */
/* 2200. Need to test on R800. */
/* From the R1800 manual -- bottom margin borderless */
- stp_send_command(v, "US", "bcc", 0, 2);
+ stp_send_command(v, "PM", "bcc", 0, 0);
+ stp_send_command(v, "DP", "bcc", 0, 0);
+ stp_send_command(v, "SN", "bc", 0);
+ stp_send_command(v, "MI", "bccc", 1, 0xb, 1);
+ stp_send_command(v, "US", "bccc", 0, 0, 2);
+ stp_send_command(v, "US", "bccc", 0, 1, 0);
/* This command means "check paper size - no" */
- stp_send_command(v, "US", "bcc", 2, 0);
+ stp_send_command(v, "US", "bccc", 0, 2, 0);
+ stp_send_command(v, "DR", "bcccc", 0, 0, 0, 0);
+ stp_send_command(v, "PP", "bccc", 0, 1, 0xff);
#endif
}
}
@@ -471,7 +478,6 @@ set_horizontal_position(stp_vars_t *v, stp_pass_t *pass, int vertical_subpass)
if (pos != 0)
{
- /* Note hard-coded 1440 -- from Epson manuals */
if (pd->command_set == MODEL_COMMAND_PRO || pd->variable_dots)
stp_send_command(v, "\033($", "bl", pos);
else if (pd->advanced_command_set || pd->res->hres > 720)