Skip to content
Snippets Groups Projects
Commit a97b1ada authored by Deucе's avatar Deucе :ok_hand_tone4:
Browse files

Fix possibly undefined value in ellipse.

Top-right quadrant doesn't need a quadrant angle, the angle is what
we want already.
parent 64f32518
Branches
Tags
No related merge requests found
Pipeline #7967 passed
......@@ -10281,7 +10281,7 @@ full_ellipse(int xc, int yc, int sa, int ea, int a, int b, bool fill, uint32_t c
if (rip.borders) {
// Top-right quadrant.
if (((sa <= angle) && (ea >= angle))
|| (inv && (ea <= qangle) && (sa >= qangle)))
|| (inv && (ea <= angle) && (sa >= angle)))
set_pixel(xc + x, yc - y, colour);
 
// Bottom-left quadrant.
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment