<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>
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);
#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
;
-; 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