GRAPHICS: Change drawRect1 in primitives to fix corner pixel issues

This commit is contained in:
Eugene Sandulenko 2022-09-19 00:38:28 +02:00
parent 6d60f91bc8
commit 8db0f22a22
No known key found for this signature in database
GPG Key ID: 014D387312D34F08

View File

@ -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);
}