X-Git-Url: https://codewiz.org/gitweb?a=blobdiff_plain;f=gfx%2Fline.c;h=f3909b15337da90735ce947f7b567c4739339670;hb=8bab11971bc4e89f1a0ab56101ed3babf93fcd1d;hp=280ed7b370cc8c4151ce0091955501a3f96b005c;hpb=bcf38f772b397e7a8ba781a69aacb9380e54b32a;p=bertos.git diff --git a/gfx/line.c b/gfx/line.c old mode 100755 new mode 100644 index 280ed7b3..f3909b15 --- a/gfx/line.c +++ b/gfx/line.c @@ -1,9 +1,34 @@ /** * \file * * * \version $Id$ @@ -14,24 +39,10 @@ * \brief Line drawing graphics routines */ -/*#* - *#* $Log$ - *#* Revision 1.3 2006/07/19 12:56:26 bernie - *#* Convert to new Doxygen style. - *#* - *#* Revision 1.2 2006/02/10 12:26:58 bernie - *#* Check CONFIG_* constraints. - *#* - *#* Revision 1.1 2006/01/24 02:17:49 bernie - *#* Split out gfx.c into bitmap.c and line.c. - *#* - *#*/ - #include "gfx.h" #include "gfx_p.h" #include /* ASSERT() */ -#include /* CPU_HARVARD */ #include /* SWAP() */ #include /* CONFIG_GFX_CLIPPING */ @@ -131,6 +142,8 @@ static void gfx_lineUnclipped(Bitmap *bm, coord_t x1, coord_t y1, coord_t x2, co } } +#if CONFIG_GFX_CLIPPING + /// Helper routine for gfx_line(). static int gfx_findRegion(int x, int y, Rect *cr) { @@ -149,6 +162,8 @@ static int gfx_findRegion(int x, int y, Rect *cr) return code; } +#endif /* CONFIG_CLIPPING */ + /** * Draw a sloped line segment. *