diff options
author | yinsimei | 2017-06-03 21:10:38 +0200 |
---|---|---|
committer | Eugene Sandulenko | 2017-07-13 18:27:45 +0200 |
commit | a589fac89527f2aebe8c5685d5f4620fc30b20f1 (patch) | |
tree | ec7ba4f78eae939da5938a84f247915ac60b399c /engines/sludge/main_loop.cpp | |
parent | 30eef2568cc77ae8a5cebf11ea63912fef7d6e2d (diff) | |
download | scummvm-rg350-a589fac89527f2aebe8c5685d5f4620fc30b20f1.tar.gz scummvm-rg350-a589fac89527f2aebe8c5685d5f4620fc30b20f1.tar.bz2 scummvm-rg350-a589fac89527f2aebe8c5685d5f4620fc30b20f1.zip |
SLUDGE: fix sprite flickering by using a full screen surface
Diffstat (limited to 'engines/sludge/main_loop.cpp')
-rw-r--r-- | engines/sludge/main_loop.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/engines/sludge/main_loop.cpp b/engines/sludge/main_loop.cpp index 55e2fc6f6d..14ffed0595 100644 --- a/engines/sludge/main_loop.cpp +++ b/engines/sludge/main_loop.cpp @@ -100,6 +100,7 @@ extern int specialSettings; extern inputType input; extern variableStack *noStack; extern Graphics::Surface backdropSurface; +Graphics::Surface renderSurface; int dialogValue = 0; @@ -473,6 +474,7 @@ int main_loop(char *filename) SDL_EnableUNICODE(1); #endif + renderSurface.create(g_system->getWidth(), g_system->getHeight(), g_system->getScreenFormat()); weAreDoneSoQuit = 0; while (!weAreDoneSoQuit) { checkInput(); |