An annulus sector with equal start and end angles is drawn as a line
This commit is contained in:
@@ -344,6 +344,10 @@ class Slope {
|
||||
|
||||
void BitmapBuffer::drawAnnulusSector(coord_t x, coord_t y, coord_t internalRadius, coord_t externalRadius, int startAngle, int endAngle, LcdFlags flags)
|
||||
{
|
||||
if (endAngle == startAngle) {
|
||||
endAngle += 1;
|
||||
}
|
||||
|
||||
Slope startSlope(startAngle);
|
||||
Slope endSlope(endAngle);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user