]> git.sur5r.net Git - cc65/commitdiff
same drawing mode extension like for DrawLine
authorizydorst <izydorst@b7a2c559-68d2-44c3-8de9-860c34a00d81>
Fri, 15 Aug 2003 23:29:23 +0000 (23:29 +0000)
committerizydorst <izydorst@b7a2c559-68d2-44c3-8de9-860c34a00d81>
Fri, 15 Aug 2003 23:29:23 +0000 (23:29 +0000)
git-svn-id: svn://svn.cc65.org/cc65/trunk@2340 b7a2c559-68d2-44c3-8de9-860c34a00d81

doc/geos.sgml
include/geos/ggraph.h
libsrc/geos/graph/drawpoint.s

index 14acb7d481356196887cce8c926666cd4bca07d0..d6a013b64c4f9a07a1c2b6fc929fb19dbf120548 100644 (file)
@@ -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>
index 9a81b718119f825011e063e0b30c7dde1d258b69..bd7e5f3e29af1873295e0be7f384e639a4dc2247 100644 (file)
@@ -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
index 842a9b96f3113f2a2036a446c4cf29656c334711..5492c4831eae7fa05aad243c08236c77e92fedcc 100644 (file)
@@ -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