projects
/
bertos.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Remove CONFIG_WATCHDOG stuff: watchdog macros expand to nothing when wdt is active.
[bertos.git]
/
gfx
/
line.c
diff --git
a/gfx/line.c
b/gfx/line.c
index 280ed7b370cc8c4151ce0091955501a3f96b005c..eb7deb8ec1f14727351c80d4763f6e617caecadd 100755
(executable)
--- a/
gfx/line.c
+++ b/
gfx/line.c
@@
-16,6
+16,9
@@
/*#*
*#* $Log$
/*#*
*#* $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.
*#*
*#* 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)
{
/// 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;
}
return code;
}
+#endif /* CONFIG_CLIPPING */
+
/**
* Draw a sloped line segment.
*
/**
* Draw a sloped line segment.
*