From aa8191d0a1906d04db3c462a744e68dc61ca9204 Mon Sep 17 00:00:00 2001 From: Irmen de Jong Date: Tue, 22 Sep 2020 02:21:16 +0200 Subject: [PATCH] introduced graphics module wrapper for cx16 to make even more programs compatible --- compiler/res/prog8lib/cx16/graphics.p8 | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/compiler/res/prog8lib/cx16/graphics.p8 b/compiler/res/prog8lib/cx16/graphics.p8 index d6e308b94..12a8e8f77 100644 --- a/compiler/res/prog8lib/cx16/graphics.p8 +++ b/compiler/res/prog8lib/cx16/graphics.p8 @@ -31,17 +31,17 @@ graphics { sub circle(uword xcenter, ubyte ycenter, ubyte radius) { cx16.r0 = xcenter - radius/2 cx16.r1 = ycenter - radius/2 - cx16.r2 = radius - cx16.r3 = radius - cx16.GRAPH_draw_oval(false) ; TODO currently seems to crash + cx16.r2 = radius*2 + cx16.r3 = radius*2 + cx16.GRAPH_draw_oval(false) ; TODO currently is not implemented on cx16, does a BRK } sub disc(uword xcenter, ubyte ycenter, ubyte radius) { cx16.r0 = xcenter - radius/2 cx16.r1 = ycenter - radius/2 - cx16.r2 = radius - cx16.r3 = radius - cx16.GRAPH_draw_oval(true) ; TODO currently seems to crash + cx16.r2 = radius*2 + cx16.r3 = radius*2 + cx16.GRAPH_draw_oval(true) ; TODO currently is not implemented on cx16, does a BRK } sub plot(uword plotx, ubyte ploty) {