]> git.sur5r.net Git - cc65/commitdiff
- fixed bug which prevented DrawPoint/Line from drawing
authorizydorst <izydorst@b7a2c559-68d2-44c3-8de9-860c34a00d81>
Fri, 5 Mar 2004 17:13:52 +0000 (17:13 +0000)
committerizydorst <izydorst@b7a2c559-68d2-44c3-8de9-860c34a00d81>
Fri, 5 Mar 2004 17:13:52 +0000 (17:13 +0000)
git-svn-id: svn://svn.cc65.org/cc65/trunk@2897 b7a2c559-68d2-44c3-8de9-860c34a00d81

libsrc/geos/graph/drawline.s
libsrc/geos/graph/drawpoint.s

index 874a58bbd8ec2af967b5d9d06ccd0fe45e5d9a0e..06d05f663078d3405138f5c18cb26d7a6a913dda 100644 (file)
@@ -2,7 +2,7 @@
 ;
 ; Maciej 'YTM/Elysium' Witkowiak
 ;
-; 29.10.99, 15.08.2003
+; 29.10.99, 5.03.2003
 
 ; void DrawLine         (char mode, struct window *mywindow);
 
@@ -24,5 +24,8 @@ _DrawLine:
            PopW r2
            jsr popa
            sta tmp1
+           clc
            bit tmp1
-           jmp DrawLine
+           bvc @1
+           sec
+@1:        jmp DrawLine
index 5492c4831eae7fa05aad243c08236c77e92fedcc..7c212176dbaab5ad8879c068bee201a0c4329dad 100644 (file)
@@ -2,7 +2,7 @@
 ;
 ; Maciej 'YTM/Elysium' Witkowiak
 ;
-; 29.10.99, 16.8.2003
+; 29.10.99, 05.3.2003
 
 ; void DrawPoint       (char mode, struct pixel *mypixel);
 
@@ -18,5 +18,8 @@ _DrawPoint:
            jsr PointRegs
            jsr popa
            sta tmp1
+           clc
            bit tmp1
-           jmp DrawPoint
+           bvc @1
+           sec
+@1:        jmp DrawPoint