diff options
author | Simei Yin | 2017-07-15 17:35:01 +0200 |
---|---|---|
committer | Simei Yin | 2017-07-15 17:51:57 +0200 |
commit | 22201ba764214a766f39f2df4d536b10132c127a (patch) | |
tree | 6f712df6ec91c590d3b7e7bf8bafc62c8e0f19ca | |
parent | a44cf28ea334904fdd2ed0ad3ec830ac8ff758a6 (diff) | |
download | scummvm-rg350-22201ba764214a766f39f2df4d536b10132c127a.tar.gz scummvm-rg350-22201ba764214a766f39f2df4d536b10132c127a.tar.bz2 scummvm-rg350-22201ba764214a766f39f2df4d536b10132c127a.zip |
SLUDGE: Move PixelFormat init to constructor
-rw-r--r-- | engines/sludge/sludge.cpp | 9 |
1 files changed, 3 insertions, 6 deletions
diff --git a/engines/sludge/sludge.cpp b/engines/sludge/sludge.cpp index e3754a7b57..6004e478a1 100644 --- a/engines/sludge/sludge.cpp +++ b/engines/sludge/sludge.cpp @@ -48,8 +48,9 @@ SludgeEngine::SludgeEngine(OSystem *syst, const SludgeGameDescription *gameDesc) DebugMan.addDebugChannel(kSludgeDebugBuiltin, "Built-in", "Built-in debug level"); DebugMan.addDebugChannel(kSludgeDebugGraphics, "Graphics", "Graphics debug level"); - // check init - debug("SludgeEngine::SludgeEngine"); + // init graphics + _origFormat = new Graphics::PixelFormat(2, 5, 6, 5, 0, 11, 5, 0, 0); + _pixelFormat = new Graphics::PixelFormat(4, 8, 8, 8, 8, 24, 16, 8, 0); // Init Strings launchMe = ""; @@ -86,10 +87,6 @@ Common::Error SludgeEngine::run() { // set global variable g_sludge = this; - // init graphics - _origFormat = new Graphics::PixelFormat(2, 5, 6, 5, 0, 11, 5, 0, 0); - _pixelFormat = new Graphics::PixelFormat(4, 8, 8, 8, 8, 24, 16, 8, 0); - // create console _console = new SludgeConsole(this); |