[Scummvm-git-logs] scummvm master -> 266cc3f9114474eb878b56fb2b79326051ea3b0f
sev-
sev at scummvm.org
Tue Jun 2 22:02:09 UTC 2020
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:
266cc3f911 GRAPHICS: Avoid overdraw in Rounded Rectangles
Commit: 266cc3f9114474eb878b56fb2b79326051ea3b0f
https://github.com/scummvm/scummvm/commit/266cc3f9114474eb878b56fb2b79326051ea3b0f
Author: Eugene Sandulenko (sev at scummvm.org)
Date: 2020-06-03T00:01:08+02:00
Commit Message:
GRAPHICS: Avoid overdraw in Rounded Rectangles
Changed paths:
graphics/primitives.cpp
diff --git a/graphics/primitives.cpp b/graphics/primitives.cpp
index ba898ede15..558fe27f06 100644
--- a/graphics/primitives.cpp
+++ b/graphics/primitives.cpp
@@ -290,7 +290,7 @@ void drawRoundRect(Common::Rect &rect, int arc, int color, bool filled, void (*p
drawHLine(rect.left + x + r, rect.right - x - r, rect.bottom + y - r + stop, color, plotProc, data);
}
- for (int i = 0; i < dy; i++) {
+ for (int i = 1; i < dy; i++) {
if (filled) {
drawHLine(rect.left, rect.right, rect.top + r + i, color, plotProc, data);
} else {
@@ -335,7 +335,7 @@ void drawRoundRect(Common::Rect &rect, int arc, int color, bool filled, void (*p
drawVLine(rect.right + x - r + stop, rect.top + y + r, rect.bottom - y - r, color, plotProc, data);
}
- for (int i = 0; i < dx; i++) {
+ for (int i = 1; i < dx; i++) {
if (filled) {
drawVLine(rect.left + r + i, rect.top, rect.bottom, color, plotProc, data);
} else {
More information about the Scummvm-git-logs
mailing list