2002-06-22 21:40:24 +00:00
|
|
|
;
|
|
|
|
; Ullrich von Bassewitz, 22.06.2002
|
|
|
|
;
|
|
|
|
; void __fastcall__ tgi_lineto (int x2, int y2);
|
|
|
|
; /* Draw a line in the current drawing color from the graphics cursor to the
|
2014-06-30 09:10:35 +00:00
|
|
|
; ** new end point.
|
|
|
|
; */
|
2002-06-22 21:40:24 +00:00
|
|
|
|
|
|
|
.include "tgi-kernel.inc"
|
|
|
|
|
|
|
|
.import popax
|
|
|
|
|
2003-02-11 12:37:46 +00:00
|
|
|
.proc _tgi_lineto
|
|
|
|
|
2009-11-06 15:26:46 +00:00
|
|
|
pha
|
|
|
|
ldy #3 ; Copy curx/cury to tgi_clip_x1/tgi_clip_y1
|
|
|
|
@L1: lda _tgi_curx,y
|
|
|
|
sta tgi_clip_x1,y
|
|
|
|
dey
|
|
|
|
bpl @L1
|
|
|
|
pla
|
|
|
|
jsr tgi_linepop ; Pop x2/y2
|
|
|
|
jmp tgi_clippedline ; Call the line clipper
|
2002-06-22 21:40:24 +00:00
|
|
|
|
2003-02-11 12:37:46 +00:00
|
|
|
.endproc
|
2002-06-22 21:40:24 +00:00
|
|
|
|