same drawing mode extension like for DrawLine
git-svn-id: svn://svn.cc65.org/cc65/trunk@2340 b7a2c559-68d2-44c3-8de9-860c34a00d81
This commit is contained in:
parent
fa084ef304
commit
b45d25d60f
3 changed files with 13 additions and 7 deletions
|
@ -301,9 +301,10 @@ proper values.
|
|||
|
||||
<sect3>DrawPoint
|
||||
<p>
|
||||
<tt/void DrawPoint (struct pixel *myPixel)/
|
||||
<tt/void DrawPoint (char mode, struct pixel *myPixel)/
|
||||
<p>
|
||||
Draws single point on the screen, no matter what the current pattern is.
|
||||
Depending on <tt/mode/ (see <tt/DrawLine/) draws/erases/copies a single point
|
||||
on the screen.
|
||||
|
||||
<sect3>TestPoint
|
||||
<p>
|
||||
|
|
|
@ -32,7 +32,7 @@ void __fastcall__ RecoverRectangle(void);
|
|||
|
||||
void __fastcall__ DrawLine(char mode, struct window *topBotCoords);
|
||||
|
||||
void __fastcall__ DrawPoint(struct pixel *myPixel);
|
||||
void __fastcall__ DrawPoint(char mode, struct pixel *myPixel);
|
||||
char __fastcall__ TestPoint(struct pixel *myPixel);
|
||||
|
||||
void __fastcall__ PutChar(char character, char y, unsigned x);
|
||||
|
@ -170,7 +170,7 @@ void __fastcall__ GraphicsString(char *myGfxString);
|
|||
#define ADD1_W 0x2000
|
||||
#define DOUBLE_B 0x80
|
||||
#define DOUBLE_W 0x8000
|
||||
/* DrawLine mode values */
|
||||
/* DrawLine/DrawPoint mode values */
|
||||
#define DRAW_ERASE 0x00
|
||||
#define DRAW_DRAW 0x40
|
||||
#define DRAW_COPY 0x80
|
||||
|
|
|
@ -1,17 +1,22 @@
|
|||
|
||||
;
|
||||
; Maciej 'YTM/Alliance' Witkowiak
|
||||
; Maciej 'YTM/Elysium' Witkowiak
|
||||
;
|
||||
; 29.10.99
|
||||
; 29.10.99, 16.8.2003
|
||||
|
||||
; void DrawPoint (struct pixel *mypixel);
|
||||
; void DrawPoint (char mode, struct pixel *mypixel);
|
||||
|
||||
|
||||
.import PointRegs
|
||||
.import popa
|
||||
.importzp tmp1
|
||||
.export _DrawPoint
|
||||
|
||||
.include "../inc/jumptab.inc"
|
||||
|
||||
_DrawPoint:
|
||||
jsr PointRegs
|
||||
jsr popa
|
||||
sta tmp1
|
||||
bit tmp1
|
||||
jmp DrawPoint
|
||||
|
|
Loading…
Add table
Reference in a new issue