foxygit / fake-08-xbox360 Log in
commit e94b0138a53f0156bbbb3281ea7c2416e63846d9
Author:     jtothebell <j.to.the.bell@gmail.com>
AuthorDate: Thu Dec 24 09:08:34 2020 -0700
Commit:     jtothebell <j.to.the.bell@gmail.com>
CommitDate: Thu Dec 24 09:08:34 2020 -0700

    Fix not drawing lines that overflow both ends
---
 source/graphics.cpp | 8 ++------
 1 file changed, 2 insertions(+), 6 deletions(-)

diff --git a/source/graphics.cpp b/source/graphics.cpp
index 9028116..03dc429 100644
--- a/source/graphics.cpp
+++ b/source/graphics.cpp
@@ -451,10 +451,7 @@ void Graphics::line (int x1, int y1, int x2, int y2){
 }

 void Graphics::_private_h_line (int x1, int x2, int y, uint8_t col){
-	if (!isYWithinClip(y) ||
-		(!isXWithinClip(x1) && !isXWithinClip(x2))
-	)
-	{
+	if (!isYWithinClip(y)){
 		return;
 	}

@@ -468,8 +465,7 @@ void Graphics::_private_h_line (int x1, int x2, int y, uint8_t col){

 void Graphics::_private_v_line (int y1, int y2, int x, uint8_t col){
 	//save draw calls if its out
-	if (!isXWithinClip(x)||
-		(!isYWithinClip(y1) && !isYWithinClip(y2))){
+	if (!isXWithinClip(x)){
 		return;
 	}