mirror of
https://github.com/apache/nuttx.git
synced 2026-06-06 08:22:32 +08:00
Misc documentation/LCD-related updates
git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@3844 42af7a65-404d-4744-a932-0658087f49c3
This commit is contained in:
@@ -226,7 +226,7 @@ int nxgl_splitline(FAR struct nxgl_vector_s *vector,
|
||||
*/
|
||||
|
||||
angle = b16atan2(itob16(iheight), itob16(iwidth));
|
||||
triheight = b16toi(linewidth * b16cos(angle));
|
||||
triheight = b16toi(linewidth * b16cos(angle) + b16HALF);
|
||||
halfheight = (triheight >> 1);
|
||||
|
||||
/* If the sine of the angle is tiny (i.e., the line is nearly horizontal),
|
||||
|
||||
Reference in New Issue
Block a user