https://github.com/libsdl-org/Maelstrom/commit/b65c62f8408bc0d72711d6da18717adb0a99f3a4
From b65c62f8408bc0d72711d6da18717adb0a99f3a4 Mon Sep 17 00:00:00 2001
From: Sam Lantinga <[EMAIL REDACTED]>
Date: Sun, 23 Oct 2011 10:21:09 -0400
Subject: [PATCH] Fixed line drawing
---
screenlib/UIElementLine.cpp | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/screenlib/UIElementLine.cpp b/screenlib/UIElementLine.cpp
index c059a3cb..8ff3054d 100644
--- a/screenlib/UIElementLine.cpp
+++ b/screenlib/UIElementLine.cpp
@@ -24,5 +24,5 @@ UIElementLine::Load(rapidxml::xml_node<> *node)
void
UIElementLine::Draw()
{
- m_screen->DrawLine(m_rect.x, m_rect.y, m_rect.x+m_rect.w, m_rect.y+m_rect.h, m_color);
+ m_screen->DrawLine(m_rect.x, m_rect.y, m_rect.x+m_rect.w-1, m_rect.y+m_rect.h-1, m_color);
}