summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDimitri Sokolyuk <demon@dim13.org>2017-01-08 22:30:48 +0100
committerDimitri Sokolyuk <demon@dim13.org>2017-01-08 22:30:48 +0100
commitb39131316fb68bb1f596bdad77909c6ac45b72b6 (patch)
tree05b2e276aeb4eb3af6906a75f7eb3daa823d8c9f
parent50f17622517a7d1757fb345e3a57ef5dfc5b9e4d (diff)
Cleanup
-rw-r--r--tek.go14
1 files changed, 5 insertions, 9 deletions
diff --git a/tek.go b/tek.go
index 010ed56..95773a9 100644
--- a/tek.go
+++ b/tek.go
@@ -98,22 +98,18 @@ func (o *Out) Plot(x, y int) {
lx := byte(x>>2) & 0x1f
if hy != o.hy {
- o.writeByte(hy | 0x20)
+ o.writeByte(0x20 | hy)
}
-
if eb != o.eb {
- o.writeByte(eb | 0x60)
+ o.writeByte(0x60 | eb)
}
-
if ly != o.ly || eb != o.eb || hx != o.hx {
- o.writeByte(ly | 0x60)
+ o.writeByte(0x60 | ly)
}
-
if hx != o.hx {
- o.writeByte(hx | 0x20)
+ o.writeByte(0x20 | hx)
}
-
- o.writeByte(lx | 0x40)
+ o.writeByte(0x40 | lx)
o.hy = hy
o.eb = eb