diff options
author | yinsimei | 2017-07-04 23:56:11 +0200 |
---|---|---|
committer | Eugene Sandulenko | 2017-07-13 18:27:45 +0200 |
commit | 5469aaf8ec48050b517933f69c6b2bcbbc288c0f (patch) | |
tree | 396e4c3a0958f9dc51e9f62b3787b7160c146fce /engines/sludge/main_loop.cpp | |
parent | d63953d9ce9d37286c9d01eb7b0ab8f15feab475 (diff) | |
download | scummvm-rg350-5469aaf8ec48050b517933f69c6b2bcbbc288c0f.tar.gz scummvm-rg350-5469aaf8ec48050b517933f69c6b2bcbbc288c0f.tar.bz2 scummvm-rg350-5469aaf8ec48050b517933f69c6b2bcbbc288c0f.zip |
SLUDGE: move initGraphics after sludge init
Diffstat (limited to 'engines/sludge/main_loop.cpp')
-rw-r--r-- | engines/sludge/main_loop.cpp | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/engines/sludge/main_loop.cpp b/engines/sludge/main_loop.cpp index a347b640b0..84d6d740c9 100644 --- a/engines/sludge/main_loop.cpp +++ b/engines/sludge/main_loop.cpp @@ -24,6 +24,8 @@ #include "common/events.h" #include "common/keyboard.h" +#include "engines/util.h" + #include "graphics/surface.h" #include "sludge/allfiles.h" @@ -253,6 +255,10 @@ int main_loop(const char *filename) return 0; } + initGraphics(winWidth, winHeight, false, g_sludge->getScreenPixelFormat()); + + // Init screen surface + renderSurface.create(g_system->getWidth(), g_system->getHeight(), g_system->getScreenFormat()); #if 0 /* Initialize the SDL library */ if (SDL_Init(SDL_INIT_VIDEO) < 0) { |