Added 1.10
+ Fixed Mouse glitch with -ve coords + Fixed straight line drawing end points
This commit is contained in:
parent
0ead0f8f80
commit
72b31e83cf
@ -2,7 +2,7 @@
|
||||
olcPixelGameEngine.h
|
||||
|
||||
+-------------------------------------------------------------+
|
||||
| OneLoneCoder Pixel Game Engine v1.9 |
|
||||
| OneLoneCoder Pixel Game Engine v1.10 |
|
||||
| "Like the command prompt console one, but not..." - javidx9 |
|
||||
+-------------------------------------------------------------+
|
||||
|
||||
@ -928,7 +928,7 @@ namespace olc
|
||||
if (dx == 0) // Line is vertical
|
||||
{
|
||||
if (y2 < y1) std::swap(y1, y2);
|
||||
for (y = y1; y < y2; y++)
|
||||
for (y = y1; y <= y2; y++)
|
||||
Draw(x1, y, p);
|
||||
return;
|
||||
}
|
||||
@ -936,7 +936,7 @@ namespace olc
|
||||
if (dy == 0) // Line is horizontal
|
||||
{
|
||||
if (x2 < x1) std::swap(x1, x2);
|
||||
for (x = x1; x < x2; x++)
|
||||
for (x = x1; x <= x2; x++)
|
||||
Draw(x, y1, p);
|
||||
return;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user