diff options
-rw-r--r-- | engines/avalanche/graphics.cpp | 4 | ||||
-rw-r--r-- | engines/avalanche/graphics.h | 2 |
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); |