aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authoruruk2013-07-15 18:27:26 +0200
committeruruk2013-07-15 18:27:26 +0200
commitfa1b5d3f3afb5d21fa4d8250e80699dc9fe00bfe (patch)
tree330719bea79fc488cb4ae3544fa821a7011ea451
parent9683ced39efe6bb0033d18498f6e553506bf39e6 (diff)
downloadscummvm-rg350-fa1b5d3f3afb5d21fa4d8250e80699dc9fe00bfe.tar.gz
scummvm-rg350-fa1b5d3f3afb5d21fa4d8250e80699dc9fe00bfe.tar.bz2
scummvm-rg350-fa1b5d3f3afb5d21fa4d8250e80699dc9fe00bfe.zip
AVALANCHE: Update Graph.
-rw-r--r--engines/avalanche/graph.cpp2
-rw-r--r--engines/avalanche/graph.h2
2 files changed, 2 insertions, 2 deletions
diff --git a/engines/avalanche/graph.cpp b/engines/avalanche/graph.cpp
index 1b0e56c5a4..712e3a6990 100644
--- a/engines/avalanche/graph.cpp
+++ b/engines/avalanche/graph.cpp
@@ -78,7 +78,7 @@ void Graph::drawBar(int16 x1, int16 y1, int16 x2, int16 y2, int16 color) {
_surface.fillRect(Common::Rect(x1, y1, x2, y2), color);
}
-void Graph::copySurface(Graphics::Surface source, uint16 destX, uint16 destY) {
+void Graph::copySurface(const Graphics::Surface &source, uint16 destX, uint16 destY) {
for (uint16 y = 0; y < source.h; y++)
for (uint16 x = 0; x < source.w; x++)
*(byte *)_surface.getBasePtr(x + destX, y + destY) = *(byte *)source.getBasePtr(x, y);
diff --git a/engines/avalanche/graph.h b/engines/avalanche/graph.h
index 3d819d1d3a..7c09071115 100644
--- a/engines/avalanche/graph.h
+++ b/engines/avalanche/graph.h
@@ -54,7 +54,7 @@ public:
void drawBar(int16 x1, int16 y1, int16 x2, int16 y2, int16 color);
- void copySurface(Graphics::Surface source, uint16 destX, uint16 destY);
+ void copySurface(const Graphics::Surface &source, uint16 destX, uint16 destY);
void refreshScreen();