diff options
author | patacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3> | 2011-08-02 13:39:55 +0000 |
---|---|---|
committer | patacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3> | 2011-08-02 13:39:55 +0000 |
commit | 39810db907fad4fec715b14dccb00ad5b6b9068c (patch) | |
tree | a60175740257bb74ed1f3139a07c79a3fe5217d0 /nuttx/graphics/nxglib | |
parent | 78d83d991a664cbb4e55861d7935a3954506eb4d (diff) | |
download | nuttx-39810db907fad4fec715b14dccb00ad5b6b9068c.tar.gz nuttx-39810db907fad4fec715b14dccb00ad5b6b9068c.tar.bz2 nuttx-39810db907fad4fec715b14dccb00ad5b6b9068c.zip |
Add NX line drawing interfaces
git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@3836 42af7a65-404d-4744-a932-0658087f49c3
Diffstat (limited to 'nuttx/graphics/nxglib')
-rw-r--r-- | nuttx/graphics/nxglib/nxglib_splitline.c | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/nuttx/graphics/nxglib/nxglib_splitline.c b/nuttx/graphics/nxglib/nxglib_splitline.c index d4d2899b3..7be9cc115 100644 --- a/nuttx/graphics/nxglib/nxglib_splitline.c +++ b/nuttx/graphics/nxglib/nxglib_splitline.c @@ -75,7 +75,8 @@ * In the general case, a line with width can be represented as a * parallelogram with a triangle at the top and bottom. Triangles and * parallelograms are both degenerate versions of a trapeziod. This - * function breaks. This function also detects other degenerate cases: + * function breaks a wide line into triangles and trapezoids. This + * function also detects other degenerate cases: * * 1. If y1 == y2 then the line is horizontal and is better represented * as a rectangle. @@ -83,9 +84,9 @@ * as a rectangle. * 3. If the width of the line is 1, then there are no triangles at the * top and bottome (this may also be the case if the width is narrow - * and the line is near vertical) + * and the line is near vertical). * 4. If the line is oriented is certain angles, it may consist only of - * the upper and lower triangles with no trapezoid inbetween. In + * the upper and lower triangles with no trapezoid in between. In * this case, 3 trapezoids will be returned, but traps[1] will be * degenerate. * |