aboutsummaryrefslogtreecommitdiff
path: root/engines
diff options
context:
space:
mode:
authoruruk2013-07-17 20:48:55 +0200
committeruruk2013-07-17 20:48:55 +0200
commitd3ec729c8f7dff3689775ad32a42399e4f1ae015 (patch)
tree6d7b7008031912202af2f1e5c51c455f4dcae3b4 /engines
parentb6f42c532ec07be6052d32d2fd86b49c3ca7331b (diff)
downloadscummvm-rg350-d3ec729c8f7dff3689775ad32a42399e4f1ae015.tar.gz
scummvm-rg350-d3ec729c8f7dff3689775ad32a42399e4f1ae015.tar.bz2
scummvm-rg350-d3ec729c8f7dff3689775ad32a42399e4f1ae015.zip
AVALANCHE: Add Graph::drawLine().
Diffstat (limited to 'engines')
-rw-r--r--engines/avalanche/graph.cpp4
-rw-r--r--engines/avalanche/graph.h4
2 files changed, 7 insertions, 1 deletions
diff --git a/engines/avalanche/graph.cpp b/engines/avalanche/graph.cpp
index 2143bcf53e..9b5662e6be 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::drawLine(int x0, int y0, int x1, int y1, uint32 color) {
+ _surface.drawLine(x0, y0, x1, y1, color);
+}
+
Graphics::Surface *Graph::readImage(const byte *source) {
Graphics::Surface *picture = new Graphics::Surface;
diff --git a/engines/avalanche/graph.h b/engines/avalanche/graph.h
index f1a6678fad..d602864e0f 100644
--- a/engines/avalanche/graph.h
+++ b/engines/avalanche/graph.h
@@ -56,7 +56,9 @@ public:
void drawBar(int16 x1, int16 y1, int16 x2, int16 y2, int16 color);
- // Must free the returened pointer!!!
+ void drawLine(int x0, int y0, int x1, int y1, uint32 color);
+
+ // Must free the returned pointer!!!
Graphics::Surface *readImage(const byte *source);
void copySurface(const Graphics::Surface &source, uint16 destX, uint16 destY);