aboutsummaryrefslogtreecommitdiff
path: root/engines/avalanche
diff options
context:
space:
mode:
authoruruk2013-07-25 16:26:49 +0200
committeruruk2013-07-25 16:26:49 +0200
commit9b4c9e496fc81dc0f7a3194d0a65b82b111f7457 (patch)
tree6496530269cba08b8ae2f961fba1540adfa43036 /engines/avalanche
parent6644905eaca4576c5429592b5e892a733ebefbdc (diff)
downloadscummvm-rg350-9b4c9e496fc81dc0f7a3194d0a65b82b111f7457.tar.gz
scummvm-rg350-9b4c9e496fc81dc0f7a3194d0a65b82b111f7457.tar.bz2
scummvm-rg350-9b4c9e496fc81dc0f7a3194d0a65b82b111f7457.zip
AVALANCHE: Add Graphics::drawFrame().
Diffstat (limited to 'engines/avalanche')
-rw-r--r--engines/avalanche/graphics.cpp4
-rw-r--r--engines/avalanche/graphics.h2
2 files changed, 6 insertions, 0 deletions
diff --git a/engines/avalanche/graphics.cpp b/engines/avalanche/graphics.cpp
index aa49a0c3dd..eb93423f98 100644
--- a/engines/avalanche/graphics.cpp
+++ b/engines/avalanche/graphics.cpp
@@ -78,6 +78,10 @@ byte *Graphics::getPixel(int16 x, int16 y) {
return (byte *)_surface.getBasePtr(x, y);
}
+void Graphics::drawFrame(int16 x1, int16 y1, int16 x2, int16 y2, int16 color) {
+ _surface.frameRect(Common::Rect(x1, y1, x2, y2), color);
+}
+
void Graphics::drawBar(int16 x1, int16 y1, int16 x2, int16 y2, int16 color) {
_surface.fillRect(Common::Rect(x1, y1, x2, y2), color);
}
diff --git a/engines/avalanche/graphics.h b/engines/avalanche/graphics.h
index 1a580029d0..14eb3fa5c4 100644
--- a/engines/avalanche/graphics.h
+++ b/engines/avalanche/graphics.h
@@ -71,6 +71,8 @@ public:
byte *getPixel(int16 x, int16 y);
+ void drawFrame(int16 x1, int16 y1, int16 x2, int16 y2, int16 color); // Solely for testing purposes!
+
void drawBar(int16 x1, int16 y1, int16 x2, int16 y2, int16 color);
void drawSprite(const SpriteInfo &sprite, byte picnum, int16 x, int16 y);