aboutsummaryrefslogtreecommitdiff
path: root/ql/ql_linux.go
diff options
context:
space:
mode:
authorPřemysl Eric Janouch <p@janouch.name>2021-06-10 02:24:00 +0200
committerPřemysl Eric Janouch <p@janouch.name>2021-06-10 02:37:14 +0200
commit269e6514df30943e1e108df97558b460f407d7a2 (patch)
treed1c8589fa7ed472a2d705ccbb018f65748e60e4f /ql/ql_linux.go
parent9734cdd16e1b7572464dfaed3bd03a70db46a3d3 (diff)
downloadsklad-269e6514df30943e1e108df97558b460f407d7a2.tar.gz
sklad-269e6514df30943e1e108df97558b460f407d7a2.tar.xz
sklad-269e6514df30943e1e108df97558b460f407d7a2.zip
Add support for printing on red/black tapes
My QL-800 refuses to print black only on a red/black tape. I really don't like the added `rb` function parameter. It would be best to be able to recognize such tapes, however nothing of the sort is documented in official Brother documentation. makeBitmapData{,RB} also look like they could be simplified further.
Diffstat (limited to 'ql/ql_linux.go')
-rw-r--r--ql/ql_linux.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/ql/ql_linux.go b/ql/ql_linux.go
index 9d465b5..26675eb 100644
--- a/ql/ql_linux.go
+++ b/ql/ql_linux.go
@@ -172,8 +172,8 @@ var errErrorOccurred = errors.New("error occurred")
var errUnexpectedStatus = errors.New("unexpected status")
var errUnknownMedia = errors.New("unknown media")
-func (p *Printer) Print(image image.Image) error {
- data := makePrintData(p.LastStatus, image)
+func (p *Printer) Print(image image.Image, rb bool) error {
+ data := makePrintData(p.LastStatus, image, rb)
if data == nil {
return errUnknownMedia
}