earthlcd / ezLCD-5x

Public Repository for ezLCD-5035-RT release files system, firmware and issue reporting
https://earthlcd.com/products/ezlcd-5x?_pos=1&_sid=0927d2260&_ss=r
0 stars 1 forks source link

Lua drawing commands that use angles as parameters accept invalid params #63

Closed microlan closed 1 year ago

microlan commented 1 year ago

Describe the bug Lua Arc, EllipseArc, and EllipsePie commands accept angles with values > 16384 and < 0. (valid angle range = 0-16384) When this happens, drawing output becomes unpredictable with various random artifacts appearing on the screen

To Reproduce use an angle > 16384 in ez.Arc()

Expected behavior Throw an error if angle is out of range

microlan commented 1 year ago

Fixed in 3/16/23 or newer build. Also updated documentation to note range of the angle parameters