[Scummvm-git-logs] scummvm master -> 191059b0601d1aa62661465d5aab836fa17da34b

bgK bastien.bouclet at gmail.com
Tue Oct 8 20:55:19 CEST 2019


This automated email contains information about 1 new commit which have been
pushed to the 'scummvm' repo located at https://github.com/scummvm/scummvm .

Summary:
191059b060 GRAPHICS: Fix drawing rounded rectangle borders for the non AA renderer


Commit: 191059b0601d1aa62661465d5aab836fa17da34b
    https://github.com/scummvm/scummvm/commit/191059b0601d1aa62661465d5aab836fa17da34b
Author: Bastien Bouclet (bastien.bouclet at gmail.com)
Date: 2019-10-08T20:54:50+02:00

Commit Message:
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.

Changed paths:
    graphics/VectorRendererSpec.cpp


diff --git a/graphics/VectorRendererSpec.cpp b/graphics/VectorRendererSpec.cpp
index e60da57..cbd5d78 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)));





More information about the Scummvm-git-logs mailing list