aboutsummaryrefslogtreecommitdiff
path: root/engines/startrek/startrek.cpp
diff options
context:
space:
mode:
authorFilippos Karapetis2019-12-28 13:21:23 +0200
committerFilippos Karapetis2019-12-28 13:22:18 +0200
commit0ae3cbc2e8dca79ee75f235469ed26715efb0ace (patch)
tree4cc9cde49f83366d3486ee2d7deb3160c9ba7221 /engines/startrek/startrek.cpp
parent9cbedc03f9b9e9e44abc457e60ade4b9d14f8938 (diff)
downloadscummvm-rg350-0ae3cbc2e8dca79ee75f235469ed26715efb0ace.tar.gz
scummvm-rg350-0ae3cbc2e8dca79ee75f235469ed26715efb0ace.tar.bz2
scummvm-rg350-0ae3cbc2e8dca79ee75f235469ed26715efb0ace.zip
STARTREK: Reduce usage of SharedPtr, and simplify bitmap related calls
Diffstat (limited to 'engines/startrek/startrek.cpp')
-rw-r--r--engines/startrek/startrek.cpp6
1 files changed, 5 insertions, 1 deletions
diff --git a/engines/startrek/startrek.cpp b/engines/startrek/startrek.cpp
index cd9ec63a34..6a312f3dd0 100644
--- a/engines/startrek/startrek.cpp
+++ b/engines/startrek/startrek.cpp
@@ -135,7 +135,7 @@ Common::Error StarTrekEngine::run() {
initGraphics(SCREEN_WIDTH, SCREEN_HEIGHT);
initializeEventsAndMouse();
- _gfx->setMouseBitmap(_gfx->loadBitmap("pushbtn"));
+ _gfx->setMouseBitmap("pushbtn");
_gfx->toggleMouse(true);
bool shouldPlayIntro = true;
@@ -511,6 +511,10 @@ Common::MemoryReadStreamEndian *StarTrekEngine::loadFile(Common::String filename
return new Common::MemoryReadStreamEndian(data, size, bigEndian);
}
+Common::MemoryReadStreamEndian *StarTrekEngine::loadBitmapFile(Common::String baseName) {
+ return loadFile(baseName + ".BMP");
+}
+
Common::MemoryReadStreamEndian *StarTrekEngine::loadFileWithParams(Common::String filename, bool unk1, bool unk2, bool unk3) {
return loadFile(filename);
}