OneLoneCoder/olcPixelGameEngine

TransformedView::DrawLine uses wrong point in overloaded method

CrazyDaisyRecords opened this issue · 2 comments

Issue / Proposal

The overloaded method

void TransformedView::DrawLine(float x1, float y1, float x2, float y2, olc::Pixel p, uint32_t pattern)

uses y2 instead of y1 on start point:

DrawLine({ x1, y2 }, { x2, y2 }, p, pattern);

instead of

DrawLine({ x1, y1 }, { x2, y2 }, p, pattern);

Excellent, Thanks, Fixed.