diff options
-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(); |