1
This commit is contained in:
churl
2022-06-19 14:05:47 +02:00
parent 529108de8b
commit 0869768ea0

View File

@ -152,11 +152,9 @@ void LFBgraphics::drawStraightLine(unsigned int x1, unsigned int y1, unsigned in
}
}
// (x1, y1)-------------------------(x2, y1)
// | |
// | |
// | |
// (x1, y2)-------------------------(x2, y2)
// (x1, y1)---(x2, y1)
// | |
// (x1, y2)---(x2, y2)
void LFBgraphics::drawRectangle(unsigned int x1, unsigned int y1, unsigned int x2, unsigned int y2, unsigned int col) {
this->drawStraightLine(x1, y1, x2, y1, col);
this->drawStraightLine(x2, y1, x2, y2, col);