Added clipping for lines.

git-svn-id: svn://svn.cc65.org/cc65/trunk@4452 b7a2c559-68d2-44c3-8de9-860c34a00d81
This commit is contained in:
uz
2009-11-06 15:26:46 +00:00
parent 24e68f5df3
commit e12bd13e16
6 changed files with 590 additions and 508 deletions

View File

@@ -11,10 +11,14 @@
.proc _tgi_line
jsr tgi_linepop ; Pop/store Y2/X2
jsr popax
jsr tgi_popxy ; Pop/store X1/Y1 into ptr1/ptr2
jmp tgi_line ; Call the driver
jsr tgi_linepop ; Pop/store Y2/X2
jsr popax ; Y1
sta tgi_clip_y1
stx tgi_clip_y1+1
jsr popax ; X1
sta tgi_clip_x1
stx tgi_clip_x1+1
jmp tgi_clippedline ; Call the line clipper
.endproc