From: bernie Date: Tue, 1 Aug 2006 12:22:00 +0000 (+0000) Subject: gfx_findRegion(): Only define when CONFIG_GFX_CLIPPING is enabled. X-Git-Tag: 1.0.0~567 X-Git-Url: https://codewiz.org/gitweb?a=commitdiff_plain;h=46626ce710c12ab2799c63893b09d06831297213;p=bertos.git gfx_findRegion(): Only define when CONFIG_GFX_CLIPPING is enabled. git-svn-id: https://src.develer.com/svnoss/bertos/trunk@674 38d2e660-2303-0410-9eaa-f027e97ec537 --- 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. *