aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNipun Garg2019-05-28 01:00:12 +0530
committerEugene Sandulenko2019-09-03 17:16:41 +0200
commite0d42fd044830fe95b7219a3c545aa92fec49f5c (patch)
tree48e65808730cd149b6689fc40592f0935a056c7a
parent99af2f6a30beee7c63da4692d7b464061af11525 (diff)
downloadscummvm-rg350-e0d42fd044830fe95b7219a3c545aa92fec49f5c.tar.gz
scummvm-rg350-e0d42fd044830fe95b7219a3c545aa92fec49f5c.tar.bz2
scummvm-rg350-e0d42fd044830fe95b7219a3c545aa92fec49f5c.zip
HDB: Fix the PixelFormat to hardcoded value
The function getScreenFormat() doesn't work until initGraphics has been called. Hence, calling it to initialize the PixelFormat doesn't work.
-rw-r--r--engines/hdb/hdb.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/engines/hdb/hdb.cpp b/engines/hdb/hdb.cpp
index 7c9aafbe7b..d3818701a4 100644
--- a/engines/hdb/hdb.cpp
+++ b/engines/hdb/hdb.cpp
@@ -49,11 +49,11 @@ HDBGame::~HDBGame() {
Common::Error HDBGame::run() {
// Initializes Graphics
- Graphics::PixelFormat format = g_system->getScreenFormat();
+ Graphics::PixelFormat format(4, 8, 8, 8, 8, 24, 16, 8, 0);
initGraphics(800, 600, &format);
_console = new Console();
- readMPC("hyperdemo.mpc");
+ //readMPC("hyperdemo.mpc");
while (!shouldQuit()) {
@@ -83,7 +83,7 @@ Common::Error HDBGame::run() {
return Common::kNoError;
}
-
+/*
void HDBGame::readMPC(const Common::String &filename) {
if (!_file.open(filename)) {
error("readMPC(): Error reading MPC file");
@@ -125,6 +125,6 @@ void HDBGame::readMPC(const Common::String &filename) {
debug("Invalid MPC file");
}
}
-}
+}*/
} // End of namespace HDB