diff --git a/source/simple/graphical/pixels.hpp b/source/simple/graphical/pixels.hpp index 6397223e486e320cc195395aba0046b6cd7daa63..6924a63a2176c5b9d5dd24a4b048590f09eefd8f 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)) }); }