From f13bfc1ac663ed1864a6c07a9bdcaa2669a2424f Mon Sep 17 00:00:00 2001
From: namark <namark@disroot.org>
Date: Thu, 17 Dec 2020 04:18:04 +0400
Subject: [PATCH] lucky me, a whole float, what are the chances...

---
 source/simple/graphical/pixels.hpp | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/source/simple/graphical/pixels.hpp b/source/simple/graphical/pixels.hpp
index 6397223..6924a63 100644
--- a/source/simple/graphical/pixels.hpp
+++ b/source/simple/graphical/pixels.hpp
@@ -124,7 +124,7 @@ namespace simple::graphical
 			return get<ColorVector>(position,
 			{
 				int2(position < float2::zero()),
-				int2::one(2) - int2(position > (size - 1))
+				int2::one(2) - int2(position >= (size - 1))
 			});
 		}
 
@@ -226,7 +226,7 @@ namespace simple::graphical
 		set<ColorVector>(pixel, position,
 		{
 			int2(position < float2::zero()),
-			int2::one(2) - int2(position > (size - 1))
+			int2::one(2) - int2(position >= (size - 1))
 		});
 	}
 
-- 
GitLab