From: izydorst Date: Fri, 15 Aug 2003 23:29:23 +0000 (+0000) Subject: same drawing mode extension like for DrawLine X-Git-Tag: V2.12.0~1397 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=b45d25d60f33f386de8d43bb1c039e5368dd002e;p=cc65 same drawing mode extension like for DrawLine git-svn-id: svn://svn.cc65.org/cc65/trunk@2340 b7a2c559-68d2-44c3-8de9-860c34a00d81 --- diff --git a/doc/geos.sgml b/doc/geos.sgml index 14acb7d48..d6a013b64 100644 --- a/doc/geos.sgml +++ b/doc/geos.sgml @@ -301,9 +301,10 @@ proper values. DrawPoint

- -Draws single point on the screen, no matter what the current pattern is. +Depending on TestPoint

diff --git a/include/geos/ggraph.h b/include/geos/ggraph.h index 9a81b7181..bd7e5f3e2 100644 --- a/include/geos/ggraph.h +++ b/include/geos/ggraph.h @@ -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 diff --git a/libsrc/geos/graph/drawpoint.s b/libsrc/geos/graph/drawpoint.s index 842a9b96f..5492c4831 100644 --- a/libsrc/geos/graph/drawpoint.s +++ b/libsrc/geos/graph/drawpoint.s @@ -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