aboutsummaryrefslogtreecommitdiff
path: root/engines
diff options
context:
space:
mode:
authoruruk2013-08-08 04:05:27 +0200
committeruruk2013-08-08 04:05:27 +0200
commit44ec5b68b5e1e2de4d8565654b6f2e870f7a8df3 (patch)
treed249f52a5ec49e911d7a6ff4a5fff90f71ef5b92 /engines
parent59ff20b32cdfb4d1ac2f112472ebb79048188c5b (diff)
downloadscummvm-rg350-44ec5b68b5e1e2de4d8565654b6f2e870f7a8df3.tar.gz
scummvm-rg350-44ec5b68b5e1e2de4d8565654b6f2e870f7a8df3.tar.bz2
scummvm-rg350-44ec5b68b5e1e2de4d8565654b6f2e870f7a8df3.zip
AVALANCHE: Repair Graphics::drawArc(), update Scrolls::drawscroll() accordingly.
Diffstat (limited to 'engines')
-rw-r--r--engines/avalanche/graphics.cpp2
-rw-r--r--engines/avalanche/scrolls2.cpp4
2 files changed, 3 insertions, 3 deletions
diff --git a/engines/avalanche/graphics.cpp b/engines/avalanche/graphics.cpp
index 9e772d393c..6a8b2ab2be 100644
--- a/engines/avalanche/graphics.cpp
+++ b/engines/avalanche/graphics.cpp
@@ -211,7 +211,7 @@ Common::Point Graphics::drawArc(const ::Graphics::Surface &surface, int16 x, int
void Graphics::drawPieSlice(const ::Graphics::Surface &surface, int16 x, int16 y, int16 stAngle, int16 endAngle, uint16 radius, byte color) {
while (radius > 0)
drawArc(surface, x, y, stAngle, endAngle, radius--, color);
- //*(byte *)surface.getBasePtr(x + 1, y) = color;
+ *(byte *)surface.getBasePtr(x + 1, y) = color;
}
diff --git a/engines/avalanche/scrolls2.cpp b/engines/avalanche/scrolls2.cpp
index 36626caf8a..e7c6eb0770 100644
--- a/engines/avalanche/scrolls2.cpp
+++ b/engines/avalanche/scrolls2.cpp
@@ -367,8 +367,8 @@ void Scrolls::drawscroll(func2 gotoit) { // This is one of the oldest procs in t
_vm->_gyro->off();
// The right corners of the scroll.
- _vm->_graphics->drawPieSlice(_vm->_graphics->_scrolls, mx + lx - 2, my - ly, 0, 90, 15, lightgray);
- _vm->_graphics->drawPieSlice(_vm->_graphics->_scrolls, mx + lx - 2, my + ly, 270, 360, 15, lightgray);
+ _vm->_graphics->drawPieSlice(_vm->_graphics->_scrolls, mx + lx, my - ly, 0, 90, 15, lightgray);
+ _vm->_graphics->drawPieSlice(_vm->_graphics->_scrolls, mx + lx, my + ly, 270, 360, 15, lightgray);
_vm->_graphics->drawArc(_vm->_graphics->_scrolls, mx + lx, my - ly, 0, 90, 15, red);
_vm->_graphics->drawArc(_vm->_graphics->_scrolls, mx + lx, my + ly, 270, 360, 15, red);