From c112b327abb5e7137533351fffdc2ae3f74cbd1b Mon Sep 17 00:00:00 2001 From: Irmen de Jong Date: Sat, 29 Jul 2023 15:16:48 +0200 Subject: [PATCH] tiny optimization --- compiler/res/prog8lib/cx16/gfx2.p8 | 8 ++++---- gradle.properties | 2 +- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/compiler/res/prog8lib/cx16/gfx2.p8 b/compiler/res/prog8lib/cx16/gfx2.p8 index cf25ce815..7361f4806 100644 --- a/compiler/res/prog8lib/cx16/gfx2.p8 +++ b/compiler/res/prog8lib/cx16/gfx2.p8 @@ -427,17 +427,17 @@ _done } word @zp d = 0 - cx16.r13 = true ; 'positive_ix' + cx16.r1L = true ; 'positive_ix' if dx < 0 { dx = -dx - cx16.r13 = false + cx16.r1L = false } word @zp dx2 = dx*2 word @zp dy2 = dy*2 cx16.r14 = x1 ; internal plot X if dx >= dy { - if cx16.r13 { + if cx16.r1L { repeat { plot(cx16.r14, y1, color) if cx16.r14==x2 @@ -464,7 +464,7 @@ _done } } else { - if cx16.r13 { + if cx16.r1L { repeat { plot(cx16.r14, y1, color) if y1 == y2 diff --git a/gradle.properties b/gradle.properties index e74490277..f3d7cf433 100644 --- a/gradle.properties +++ b/gradle.properties @@ -5,4 +5,4 @@ org.gradle.daemon=true kotlin.code.style=official javaVersion=11 kotlinVersion=1.9.0 -version=9.2 +version=9.3-SNAPSHOT