diff options
author | uruk | 2013-08-08 21:40:41 +0200 |
---|---|---|
committer | uruk | 2013-08-08 21:40:41 +0200 |
commit | ad199c4929c9e0e3a3be9097b21338d3617c6f1b (patch) | |
tree | 0883e435671c38513d0eb4391c1b5347acb8dd7e /engines | |
parent | ae2d657dc6119b7804a9e63032a1990248b70f56 (diff) | |
download | scummvm-rg350-ad199c4929c9e0e3a3be9097b21338d3617c6f1b.tar.gz scummvm-rg350-ad199c4929c9e0e3a3be9097b21338d3617c6f1b.tar.bz2 scummvm-rg350-ad199c4929c9e0e3a3be9097b21338d3617c6f1b.zip |
AVALANCHE: Repair Graphics::drawArc().
Diffstat (limited to 'engines')
-rw-r--r-- | engines/avalanche/graphics.cpp | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/engines/avalanche/graphics.cpp b/engines/avalanche/graphics.cpp index 0042631b74..c7774ed362 100644 --- a/engines/avalanche/graphics.cpp +++ b/engines/avalanche/graphics.cpp @@ -191,11 +191,14 @@ Common::Point Graphics::drawArc(const ::Graphics::Surface &surface, int16 x, int if ((j >= stAngle) && (j <= endAngle)) *(byte *)_scrolls.getBasePtr(xp,yp) = color; - else if (((180-j) >= stAngle) && ((180-j) <= endAngle)) + + if (((180-j) >= stAngle) && ((180-j) <= endAngle)) *(byte *)_scrolls.getBasePtr(xm,yp) = color; - else if (((j+180) >= stAngle) && ((j+180) <= endAngle)) + + if (((j+180) >= stAngle) && ((j+180) <= endAngle)) *(byte *)_scrolls.getBasePtr(xm,ym) = color; - else if (((360-j) >= stAngle) && ((360-j) <= endAngle)) + + if (((360-j) >= stAngle) && ((360-j) <= endAngle)) *(byte *)_scrolls.getBasePtr(xp,ym) = color; j += delta; |