An annulus sector with equal start and end angles is drawn as a line

This commit is contained in:
Bertrand Songis
2020-03-09 17:06:36 +01:00
parent 7d17310681
commit 55f8dabe12
+4
View File
@@ -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);