mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-10-21 09:33:34 +08:00
Fix a divide-by-zero error in the trapezoid drawing logic
git-svn-id: https://nuttx.svn.sourceforge.net/svnroot/nuttx/trunk@4807 7fd9a85b-ad96-42d3-883c-3090e2eb8679
This commit is contained in:
@@ -2896,4 +2896,8 @@
|
||||
when the work queue is enabled. This is partially because some interrupt
|
||||
related logic is not built in that case. Simply disabling then re-
|
||||
enabling interrupts restores the proper state.
|
||||
* graphics/nxglib/lcd/nxglib_filltrapezoid.c and fb/nxglib_filltrapezoid.c:
|
||||
Fix an error when the trapezoid is only 1 line high. In this case, a
|
||||
divide by zero error would occur. The fix is to draw the 1 line high
|
||||
trapezoid as a run.
|
||||
|
||||
|
||||
Reference in New Issue
Block a user