diff options
-rw-r--r-- | graphics/primitives.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/graphics/primitives.cpp b/graphics/primitives.cpp index 60898aa16c..fd6c8fb262 100644 --- a/graphics/primitives.cpp +++ b/graphics/primitives.cpp @@ -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 |