[Scummvm-git-logs] scummvm master -> 8db0f22a22cb7758699be78c54888639c8e1dd39

sev- noreply at scummvm.org
Sun Sep 18 22:38:43 UTC 2022


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:
8db0f22a22 GRAPHICS: Change drawRect1 in primitives to fix corner pixel issues


Commit: 8db0f22a22cb7758699be78c54888639c8e1dd39
    https://github.com/scummvm/scummvm/commit/8db0f22a22cb7758699be78c54888639c8e1dd39
Author: Eugene Sandulenko (sev at scummvm.org)
Date: 2022-09-19T00:38:28+02:00

Commit Message:
GRAPHICS: Change drawRect1 in primitives to fix corner pixel issues

Changed paths:
    graphics/primitives.cpp


diff --git a/graphics/primitives.cpp b/graphics/primitives.cpp
index a223d370407..8f7f32f4494 100644
--- a/graphics/primitives.cpp
+++ b/graphics/primitives.cpp
@@ -262,8 +262,8 @@ void drawRect(Common::Rect &rect, uint32 color, void (*plotProc)(int, int, int,
  * @brief Draws rectangle outline _with_ right and bottom edges
  */
 void drawRect1(Common::Rect &rect, uint32 color, void (*plotProc)(int, int, int, void *), void *data) {
-	drawHLine(rect.left, rect.right, rect.top, color, plotProc, data);
-	drawHLine(rect.left, rect.right, rect.bottom, color, plotProc, data);
+	drawHLine(rect.left + 1, rect.right - 1, rect.top, color, plotProc, data);
+	drawHLine(rect.left + 1, rect.right - 1, rect.bottom, color, plotProc, data);
 	drawVLine(rect.left, rect.top, rect.bottom, color, plotProc, data);
 	drawVLine(rect.right, rect.top, rect.bottom, color, plotProc, data);
 }




More information about the Scummvm-git-logs mailing list