diff options
author | Eugene Sandulenko | 2015-12-20 13:53:33 +0100 |
---|---|---|
committer | Eugene Sandulenko | 2015-12-27 15:40:57 +0100 |
commit | 900903324d0adda5f8bd574b9b914088a13b5ac5 (patch) | |
tree | 8c666a83c903a3e5f69540829f3142b021ca083a /engines | |
parent | c17c2421f42e3cf67dbfcc956502c00652a14fec (diff) | |
download | scummvm-rg350-900903324d0adda5f8bd574b9b914088a13b5ac5.tar.gz scummvm-rg350-900903324d0adda5f8bd574b9b914088a13b5ac5.tar.bz2 scummvm-rg350-900903324d0adda5f8bd574b9b914088a13b5ac5.zip |
WAGE: Fixed think vertical/horizontal lines
Diffstat (limited to 'engines')
-rw-r--r-- | engines/wage/design.cpp | 11 |
1 files changed, 8 insertions, 3 deletions
diff --git a/engines/wage/design.cpp b/engines/wage/design.cpp index 7d78df8529..aab2eb7f37 100644 --- a/engines/wage/design.cpp +++ b/engines/wage/design.cpp @@ -378,7 +378,6 @@ void Design::drawBitmap(Graphics::Surface *surface, Common::ReadStream &in, bool x = 0; break; } - } } } @@ -555,10 +554,16 @@ void Design::drawThickLine (int x1, int y1, int x2, int y2, int thick, int color int dy = abs(y2 - y1); if (dx == 0) { - drawVLine(x1, y1, y2, color, plotProc, data); + if (y1 > y2) + SWAP(y1, y2); + Common::Rect r(x1, y1, x1 + thick, y2); + drawFilledRect(r, color, plotProc, data); return; } else if (dy == 0) { - drawHLine(x1, x2, y1, color, plotProc, data); + if (x1 > x2) + SWAP(x1, x2); + Common::Rect r(x1, y1, x2, y1 + thick); + drawFilledRect(r, color, plotProc, data); return; } |