diff options
author | yinsimei | 2017-05-29 07:51:40 +0200 |
---|---|---|
committer | Eugene Sandulenko | 2017-07-13 18:27:45 +0200 |
commit | 2dddb900c9b6d4356a19886cd31587a049be23d8 (patch) | |
tree | 07f52c7d3a846c6b0d203812e3d0464c42036358 /engines/sludge/main_loop.cpp | |
parent | 6808650f3e17f57c2dc2424c813f1f62a04ed03c (diff) | |
download | scummvm-rg350-2dddb900c9b6d4356a19886cd31587a049be23d8.tar.gz scummvm-rg350-2dddb900c9b6d4356a19886cd31587a049be23d8.tar.bz2 scummvm-rg350-2dddb900c9b6d4356a19886cd31587a049be23d8.zip |
SLUDGE: Use PNGDecoder to read backdrop
Diffstat (limited to 'engines/sludge/main_loop.cpp')
-rw-r--r-- | engines/sludge/main_loop.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/engines/sludge/main_loop.cpp b/engines/sludge/main_loop.cpp index b278a35ec8..283a2282c1 100644 --- a/engines/sludge/main_loop.cpp +++ b/engines/sludge/main_loop.cpp @@ -74,6 +74,7 @@ #include "sludger.h" #include "graphics.h" #include "helpers.h" +#include "graphics/surface.h" namespace Sludge { @@ -97,6 +98,7 @@ extern float cameraZoom; extern int specialSettings; extern inputType input; extern variableStack *noStack; +extern Graphics::Surface backdropSurface; int dialogValue = 0; @@ -471,6 +473,8 @@ try walkAllPeople(); handleInput(); sludgeDisplay(); + g_system->copyRectToScreen(backdropSurface.getPixels(), backdropSurface.pitch, 0, 0, backdropSurface.w, backdropSurface.h); + g_system->updateScreen(); #if 0 Wait_Frame(); #endif |