Message ID | 20241215104508.191237-6-geert@linux-m68k.org |
---|---|
State | New |
Headers | show |
Series | Export feature and large ellipses support | expand |
diff --git a/drawops/generic.c b/drawops/generic.c index 9fd8aafb69a868a2..ba8154b7ee34ca18 100644 --- a/drawops/generic.c +++ b/drawops/generic.c @@ -281,7 +281,7 @@ static void draw_ellipse_points(u32 cx, u32 cy, u32 x, u32 y, pixel_t pixel) if (x == 0) { set_pixel(cx, cy-y, pixel); set_pixel(cx, cy+y, pixel); - } else if (0 == y) { + } else if (y == 0) { set_pixel(cx-x, cy, pixel); set_pixel(cx+x, cy, pixel); } else {
Replace the rare "0 == y" check by the more common "y == 0" check. Signed-off-by: Geert Uytterhoeven <geert@linux-m68k.org> --- drawops/generic.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)