diff options
author | Scott Percival | 2020-01-11 11:55:45 +0800 |
---|---|---|
committer | Scott Percival | 2020-01-11 11:55:45 +0800 |
commit | 56aa8f3448c168abd0dc62ed283e92f7cb29f04b (patch) | |
tree | 123b918bb52340a32e215ff19e83a7c35c9d546b /graphics | |
parent | b31d5ac2b9efe04fa717f6c39b4ce1526b55fd19 (diff) | |
download | scummvm-rg350-56aa8f3448c168abd0dc62ed283e92f7cb29f04b.tar.gz scummvm-rg350-56aa8f3448c168abd0dc62ed283e92f7cb29f04b.tar.bz2 scummvm-rg350-56aa8f3448c168abd0dc62ed283e92f7cb29f04b.zip |
GRAPHICS: Fix arguments order in drawRect
Diffstat (limited to 'graphics')
-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 |