X-Git-Url: https://codewiz.org/gitweb?a=blobdiff_plain;f=gfx%2Fline.c;h=eb7deb8ec1f14727351c80d4763f6e617caecadd;hb=bee5b90739b848c275160512171a3114532babb4;hp=280ed7b370cc8c4151ce0091955501a3f96b005c;hpb=bcf38f772b397e7a8ba781a69aacb9380e54b32a;p=bertos.git diff --git a/gfx/line.c b/gfx/line.c index 280ed7b3..eb7deb8e 100755 --- a/gfx/line.c +++ b/gfx/line.c @@ -16,6 +16,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. *#* @@ -131,6 +134,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 +154,8 @@ static int gfx_findRegion(int x, int y, Rect *cr) return code; } +#endif /* CONFIG_CLIPPING */ + /** * Draw a sloped line segment. *