Update olcPGEX_TransformedView.h
Fixed DrawLine bug
This commit is contained in:
parent
705ab91a79
commit
038ee3afff
@ -3,7 +3,7 @@
|
|||||||
|
|
||||||
+-------------------------------------------------------------+
|
+-------------------------------------------------------------+
|
||||||
| OneLoneCoder Pixel Game Engine Extension |
|
| OneLoneCoder Pixel Game Engine Extension |
|
||||||
| Transformed View v1.00 |
|
| Transformed View v1.01 |
|
||||||
+-------------------------------------------------------------+
|
+-------------------------------------------------------------+
|
||||||
|
|
||||||
NOTE: UNDER ACTIVE DEVELOPMENT - THERE ARE BUGS/GLITCHES
|
NOTE: UNDER ACTIVE DEVELOPMENT - THERE ARE BUGS/GLITCHES
|
||||||
@ -59,10 +59,11 @@
|
|||||||
|
|
||||||
Author
|
Author
|
||||||
~~~~~~
|
~~~~~~
|
||||||
David Barr, aka javidx9, ©OneLoneCoder 2019, 2020, 2021
|
David Barr, aka javidx9, ©OneLoneCoder 2019, 2020, 2021
|
||||||
|
|
||||||
Revisions:
|
Revisions:
|
||||||
1.00: Initial Release
|
1.00: Initial Release
|
||||||
|
1.01: DrawLine bug fix, thanks Fern
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#pragma once
|
#pragma once
|
||||||
@ -347,7 +348,7 @@ namespace olc
|
|||||||
|
|
||||||
void TransformedView::DrawLine(float x1, float y1, float x2, float y2, olc::Pixel p, uint32_t pattern)
|
void TransformedView::DrawLine(float x1, float y1, float x2, float y2, olc::Pixel p, uint32_t pattern)
|
||||||
{
|
{
|
||||||
DrawLine({ x1, y2 }, { x2, y2 }, p, pattern);
|
DrawLine({ x1, y1 }, { x2, y2 }, p, pattern);
|
||||||
}
|
}
|
||||||
|
|
||||||
void TransformedView::DrawLine(const olc::vf2d & pos1, const olc::vf2d & pos2, olc::Pixel p, uint32_t pattern)
|
void TransformedView::DrawLine(const olc::vf2d & pos1, const olc::vf2d & pos2, olc::Pixel p, uint32_t pattern)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user