aboutsummaryrefslogtreecommitdiff
path: root/engines
diff options
context:
space:
mode:
authoruruk2013-08-11 00:29:48 +0200
committeruruk2013-08-11 00:29:48 +0200
commitc519ea0aa21e774e5a763cbfe98c78165cfcffbb (patch)
treefe89295f9db5fd964b7afae6ae07d65088e22e83 /engines
parenta41736e698f31364219c8d904342a8fcff8d16d0 (diff)
downloadscummvm-rg350-c519ea0aa21e774e5a763cbfe98c78165cfcffbb.tar.gz
scummvm-rg350-c519ea0aa21e774e5a763cbfe98c78165cfcffbb.tar.bz2
scummvm-rg350-c519ea0aa21e774e5a763cbfe98c78165cfcffbb.zip
AVALANCHE: Remove unnecessary consts from Graphics.
Diffstat (limited to 'engines')
-rw-r--r--engines/avalanche/graphics.cpp6
-rw-r--r--engines/avalanche/graphics.h6
2 files changed, 6 insertions, 6 deletions
diff --git a/engines/avalanche/graphics.cpp b/engines/avalanche/graphics.cpp
index aa341f383e..42a36ff83c 100644
--- a/engines/avalanche/graphics.cpp
+++ b/engines/avalanche/graphics.cpp
@@ -117,7 +117,7 @@ void Graphics::drawSprite(const SpriteInfo &sprite, byte picnum, int16 x, int16
}
}
-Common::Point Graphics::drawArc(const ::Graphics::Surface &surface, int16 x, int16 y, int16 stAngle, int16 endAngle, uint16 radius, byte color) {
+Common::Point Graphics::drawArc(::Graphics::Surface &surface, int16 x, int16 y, int16 stAngle, int16 endAngle, uint16 radius, byte color) {
Common::Point endPoint;
const double pi = 3.14;
const double convfac = pi / 180.0;
@@ -205,12 +205,12 @@ Common::Point Graphics::drawArc(const ::Graphics::Surface &surface, int16 x, int
return endPoint;
}
-void Graphics::drawPieSlice(const ::Graphics::Surface &surface, int16 x, int16 y, int16 stAngle, int16 endAngle, uint16 radius, byte color) {
+void Graphics::drawPieSlice(::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);
}
-void Graphics::drawTriangle(const ::Graphics::Surface &surface, Common::Point *p, byte color) {
+void Graphics::drawTriangle(::Graphics::Surface &surface, Common::Point *p, byte color) {
// Draw the borders with a marking color.
_scrolls.drawLine(p[0].x, p[0].y, p[1].x, p[1].y, 255);
_scrolls.drawLine(p[1].x, p[1].y, p[2].x, p[2].y, 255);
diff --git a/engines/avalanche/graphics.h b/engines/avalanche/graphics.h
index 787eb6ded3..c4c1e85b02 100644
--- a/engines/avalanche/graphics.h
+++ b/engines/avalanche/graphics.h
@@ -88,14 +88,14 @@ public:
void drawSprite(const SpriteInfo &sprite, byte picnum, int16 x, int16 y);
- Common::Point drawArc(const ::Graphics::Surface &surface, int16 x, int16 y, int16 stAngle, int16 endAngle, uint16 radius, byte color);
+ Common::Point drawArc(::Graphics::Surface &surface, int16 x, int16 y, int16 stAngle, int16 endAngle, uint16 radius, byte color);
// Taken from Free Pascal's Procedure InternalEllipseDefault. Used to replace Pascal's procedure arc.
// Returns the end point of the arc. (Needed in Lucerna::lucerna_clock().)
// TODO: Make it more accurate later.
- void drawPieSlice(const ::Graphics::Surface &surface, int16 x, int16 y, int16 stAngle, int16 endAngle, uint16 radius, byte color);
+ void drawPieSlice(::Graphics::Surface &surface, int16 x, int16 y, int16 stAngle, int16 endAngle, uint16 radius, byte color);
- void drawTriangle(const ::Graphics::Surface &surface, Common::Point *p, byte color);
+ void drawTriangle(::Graphics::Surface &surface, Common::Point *p, byte color);