GRAPHICS: Fix arguments order in drawRect

This commit is contained in:
Scott Percival 2020-01-11 11:55:45 +08:00
parent b31d5ac2b9
commit 56aa8f3448

View file

@ -247,8 +247,8 @@ void drawFilledRect(Common::Rect &rect, int color, void (*plotProc)(int, int, in
void drawRect(Common::Rect &rect, int color, void (*plotProc)(int, int, int, void *), void *data) {
drawHLine(rect.left, rect.right, rect.top, color, plotProc, data);
drawHLine(rect.left, rect.right, rect.bottom, color, plotProc, data);
drawVLine(rect.top, rect.bottom, rect.left, color, plotProc, data);
drawVLine(rect.top, rect.bottom, rect.right, color, plotProc, data);
drawVLine(rect.left, rect.top, rect.bottom, color, plotProc, data);
drawVLine(rect.right, rect.top, rect.bottom, color, plotProc, data);
}
// http://members.chello.at/easyfilter/bresenham.html