aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authoruruk2013-07-12 16:08:35 +0200
committeruruk2013-07-12 16:08:35 +0200
commitfa881567db05ffb6c2f8aaf96a37a3321e9c417f (patch)
treed98981ca7c52b10079dd08b72c249933a8295f02
parenta096ee19576ce9b518f28c3da27463244d51893e (diff)
downloadscummvm-rg350-fa881567db05ffb6c2f8aaf96a37a3321e9c417f.tar.gz
scummvm-rg350-fa881567db05ffb6c2f8aaf96a37a3321e9c417f.tar.bz2
scummvm-rg350-fa881567db05ffb6c2f8aaf96a37a3321e9c417f.zip
AVALANCHE: Update Graph.
-rw-r--r--engines/avalanche/graph.cpp4
-rw-r--r--engines/avalanche/graph.h2
2 files changed, 6 insertions, 0 deletions
diff --git a/engines/avalanche/graph.cpp b/engines/avalanche/graph.cpp
index 47836aaa86..d932d12be8 100644
--- a/engines/avalanche/graph.cpp
+++ b/engines/avalanche/graph.cpp
@@ -78,6 +78,10 @@ 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) {
+ _surface.copyFrom(source);
+}
+
void Graph::refreshScreen() {
g_system->copyRectToScreen(_surface.pixels, _surface.pitch , 0, 0, _screenWidth, _screenHeight);
g_system->updateScreen();
diff --git a/engines/avalanche/graph.h b/engines/avalanche/graph.h
index beaa796915..24fffcc149 100644
--- a/engines/avalanche/graph.h
+++ b/engines/avalanche/graph.h
@@ -54,6 +54,8 @@ public:
void drawBar(int16 x1, int16 y1, int16 x2, int16 y2, int16 color);
+ void copySurface(Graphics::Surface source);
+
void refreshScreen();
private: