[Scummvm-git-logs] scummvm master -> d4559955729dab7eeb4257f8be084f796727a535
sev-
noreply at scummvm.org
Wed May 6 10:46:29 UTC 2026
This automated email contains information about 1 new commit which have been
pushed to the 'scummvm' repo located at https://api.github.com/repos/scummvm/scummvm .
Summary:
d455995572 GUI: Prevent potential negative radius for border.
Commit: d4559955729dab7eeb4257f8be084f796727a535
https://github.com/scummvm/scummvm/commit/d4559955729dab7eeb4257f8be084f796727a535
Author: Eugene Sandulenko (sev at scummvm.org)
Date: 2026-05-06T12:45:36+02:00
Commit Message:
GUI: Prevent potential negative radius for border.
Fixes bug #15587
Changed paths:
graphics/VectorRenderer.cpp
diff --git a/graphics/VectorRenderer.cpp b/graphics/VectorRenderer.cpp
index b3d74d21391..7a8799f4ff1 100644
--- a/graphics/VectorRenderer.cpp
+++ b/graphics/VectorRenderer.cpp
@@ -105,6 +105,9 @@ int VectorRenderer::stepGetRadius(const DrawStep &step, const Common::Rect &area
if (step.scale != (1 << 16) && step.scale != 0)
radius = (radius * step.scale) >> 16;
+ if (raduis < 0)
+ radius = 0;
+
return radius;
}
More information about the Scummvm-git-logs
mailing list