[Scummvm-git-logs] scummvm master -> f21d5582b01d77e1f4cab17e957da459e213dffe

sev- noreply at scummvm.org
Thu Jul 14 12:40:49 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:
f21d5582b0 GRAPHICS: Fix Rect drawing in primitives


Commit: f21d5582b01d77e1f4cab17e957da459e213dffe
    https://github.com/scummvm/scummvm/commit/f21d5582b01d77e1f4cab17e957da459e213dffe
Author: Eugene Sandulenko (sev at scummvm.org)
Date: 2022-07-14T14:40:18+02:00

Commit Message:
GRAPHICS: Fix Rect drawing in primitives

Changed paths:
    graphics/primitives.cpp


diff --git a/graphics/primitives.cpp b/graphics/primitives.cpp
index f1c31c4338d..5815d4a7704 100644
--- a/graphics/primitives.cpp
+++ b/graphics/primitives.cpp
@@ -255,7 +255,7 @@ void drawRect(Common::Rect &rect, int color, void (*plotProc)(int, int, int, voi
 	drawHLine(rect.left, rect.right - 1, rect.top, color, plotProc, data);
 	drawHLine(rect.left, rect.right - 1, rect.bottom - 1, color, plotProc, data);
 	drawVLine(rect.left, rect.top, rect.bottom - 1, color, plotProc, data);
-	drawVLine(rect.right, rect.top, rect.bottom - 1, color, plotProc, data);
+	drawVLine(rect.right - 1, rect.top, rect.bottom - 1, color, plotProc, data);
 }
 
 /**




More information about the Scummvm-git-logs mailing list