From 55f8dabe127f5b9677e3e718f867dca5440b80c7 Mon Sep 17 00:00:00 2001 From: Bertrand Songis Date: Mon, 9 Mar 2020 17:06:36 +0100 Subject: [PATCH] An annulus sector with equal start and end angles is drawn as a line --- radio/src/thirdparty/libopenui/src/bitmapbuffer.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/radio/src/thirdparty/libopenui/src/bitmapbuffer.cpp b/radio/src/thirdparty/libopenui/src/bitmapbuffer.cpp index 20e42c70c..ab9b8bb46 100755 --- a/radio/src/thirdparty/libopenui/src/bitmapbuffer.cpp +++ b/radio/src/thirdparty/libopenui/src/bitmapbuffer.cpp @@ -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);