diff options
author | uruk | 2013-07-15 18:27:26 +0200 |
---|---|---|
committer | uruk | 2013-07-15 18:27:26 +0200 |
commit | fa1b5d3f3afb5d21fa4d8250e80699dc9fe00bfe (patch) | |
tree | 330719bea79fc488cb4ae3544fa821a7011ea451 | |
parent | 9683ced39efe6bb0033d18498f6e553506bf39e6 (diff) | |
download | scummvm-rg350-fa1b5d3f3afb5d21fa4d8250e80699dc9fe00bfe.tar.gz scummvm-rg350-fa1b5d3f3afb5d21fa4d8250e80699dc9fe00bfe.tar.bz2 scummvm-rg350-fa1b5d3f3afb5d21fa4d8250e80699dc9fe00bfe.zip |
AVALANCHE: Update Graph.
-rw-r--r-- | engines/avalanche/graph.cpp | 2 | ||||
-rw-r--r-- | engines/avalanche/graph.h | 2 |
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(); |