aboutsummaryrefslogtreecommitdiff
path: root/graphics
diff options
context:
space:
mode:
authorBastien Bouclet2019-10-08 20:45:35 +0200
committerBastien Bouclet2019-10-08 20:54:50 +0200
commit191059b0601d1aa62661465d5aab836fa17da34b (patch)
tree6afd24f9ce4be5b9924d3354273dc5aca79b1a1f /graphics
parentf9f3565582f80b715a0ed3c05caf6326fc6fdc95 (diff)
downloadscummvm-rg350-191059b0601d1aa62661465d5aab836fa17da34b.tar.gz
scummvm-rg350-191059b0601d1aa62661465d5aab836fa17da34b.tar.bz2
scummvm-rg350-191059b0601d1aa62661465d5aab836fa17da34b.zip
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.
Diffstat (limited to 'graphics')
-rw-r--r--graphics/VectorRendererSpec.cpp3
1 files changed, 0 insertions, 3 deletions
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)));