From 191059b0601d1aa62661465d5aab836fa17da34b Mon Sep 17 00:00:00 2001 From: Bastien Bouclet Date: Tue, 8 Oct 2019 20:45:35 +0200 Subject: GRAPHICS: Fix drawing rounded rectangle borders for the non AA renderer The check for the clipping rect was in the non-clip version of the method, and was using values not in screen-space. --- graphics/VectorRendererSpec.cpp | 3 --- 1 file changed, 3 deletions(-) (limited to 'graphics/VectorRendererSpec.cpp') diff --git a/graphics/VectorRendererSpec.cpp b/graphics/VectorRendererSpec.cpp index e60da577b3..cbd5d78d0d 100644 --- a/graphics/VectorRendererSpec.cpp +++ b/graphics/VectorRendererSpec.cpp @@ -2695,9 +2695,6 @@ drawBorderRoundedSquareAlg(int x1, int y1, int r, int w, int h, PixelType color, while (x++ < (y - 2)) { BE_ALGORITHM(); - if (x < _clippingArea.left || x > _clippingArea.right) continue; - if (y < _clippingArea.top || y > _clippingArea.bottom) continue; - BE_DRAWCIRCLE_BCOLOR_TR_CW(ptr_tr, x, y, px, py, (uint8)(alpha_r + (alphaStep_tr * x))); BE_DRAWCIRCLE_BCOLOR_BR_CW(ptr_br, x, y, px, py, (uint8)(alpha_b + (alphaStep_br * x))); BE_DRAWCIRCLE_BCOLOR_BL_CW(ptr_bl, x, y, px, py, (uint8)(alpha_l + (alphaStep_bl * x))); -- cgit v1.2.3