# HG changeset patch # User Laurens Holst # Date 1497113656 -7200 # Sat Jun 10 18:54:16 2017 +0200 # Node ID 114ca88b773d863bee6ccd5f3b390b84e130ea38 # Parent e1f527e2ab89dd25a67c7a1c101e07667c877fa5 SpanBuffer: Only support spans where x1 < x2. Backout of changeset 2949fb9e533a. diff --git a/src/SpanBuffer.asm b/src/SpanBuffer.asm --- a/src/SpanBuffer.asm +++ b/src/SpanBuffer.asm @@ -33,23 +33,17 @@ dec h ret -; d = x1 -; e = x2 +; d = x +; e = end x ; b = z ; c = color ; hl = this -; Modifies: af, e, d +; Modifies: af SpanBuffer_Insert: PROC ld a,e - cp d - ret z dec a cp d - jr nc,NoSwap - inc d - ld e,d - ld d,a -NoSwap: + call c,System_ThrowException push bc xor a StartLoop: