X-Git-Url: https://codewiz.org/gitweb?a=blobdiff_plain;f=gfx%2Fline.c;h=c5a6046f75ddc06aa34921d76b67a46eb9b46a1a;hb=96bda3a8889719af5e4475aaf853487f2e99e01f;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..c5a6046f --- a/gfx/line.c +++ b/gfx/line.c @@ -1,9 +1,34 @@ /** * \file * * * \version $Id$ @@ -16,6 +41,9 @@ /*#* *#* $Log$ + *#* Revision 1.4 2006/08/01 12:22:00 bernie + *#* gfx_findRegion(): Only define when CONFIG_GFX_CLIPPING is enabled. + *#* *#* Revision 1.3 2006/07/19 12:56:26 bernie *#* Convert to new Doxygen style. *#* @@ -31,7 +59,7 @@ #include "gfx_p.h" #include /* ASSERT() */ -#include /* CPU_HARVARD */ +#include /* CPU_HARVARD */ #include /* SWAP() */ #include /* CONFIG_GFX_CLIPPING */ @@ -131,6 +159,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 +179,8 @@ static int gfx_findRegion(int x, int y, Rect *cr) return code; } +#endif /* CONFIG_CLIPPING */ + /** * Draw a sloped line segment. *