From b39131316fb68bb1f596bdad77909c6ac45b72b6 Mon Sep 17 00:00:00 2001 From: Dimitri Sokolyuk Date: Sun, 8 Jan 2017 22:30:48 +0100 Subject: Cleanup --- tek.go | 14 +++++--------- 1 file 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 -- cgit v1.2.3