Added clipping for lines.
git-svn-id: svn://svn.cc65.org/cc65/trunk@4452 b7a2c559-68d2-44c3-8de9-860c34a00d81
This commit is contained in:
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user