aboutsummaryrefslogtreecommitdiff
path: root/engines/startrek/graphics.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'engines/startrek/graphics.cpp')
-rw-r--r--engines/startrek/graphics.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/engines/startrek/graphics.cpp b/engines/startrek/graphics.cpp
index e1073e2c50..c782bc5ed6 100644
--- a/engines/startrek/graphics.cpp
+++ b/engines/startrek/graphics.cpp
@@ -72,8 +72,8 @@ Graphics::~Graphics() {
delete _font;
}
-void Graphics::setBackgroundImage(Bitmap *bitmap) {
- _backgroundImage = SharedPtr<Bitmap>(bitmap);
+void Graphics::setBackgroundImage(Common::String imageName) {
+ _backgroundImage = SharedPtr<Bitmap>(loadBitmap(imageName));
}
void Graphics::drawBitmapToBackground(const Common::Rect &origRect, const Common::Rect &drawRect, Bitmap *bitmap) {