aboutsummaryrefslogtreecommitdiff
path: root/engines/drascula/converse.cpp
diff options
context:
space:
mode:
authorTorbjörn Andersson2010-09-21 17:57:02 +0000
committerTorbjörn Andersson2010-09-21 17:57:02 +0000
commit76f2d3d78b2d88f36ac5d0f241b8a4b21a00024f (patch)
tree50451e80b017ca9d92b417b64144423b11596034 /engines/drascula/converse.cpp
parent88e25e6f2510cf8cee4f48d3c4d4cf6643fc5e2d (diff)
downloadscummvm-rg350-76f2d3d78b2d88f36ac5d0f241b8a4b21a00024f.tar.gz
scummvm-rg350-76f2d3d78b2d88f36ac5d0f241b8a4b21a00024f.tar.bz2
scummvm-rg350-76f2d3d78b2d88f36ac5d0f241b8a4b21a00024f.zip
DRASCULA: Fix bug #3069977 ("Grafic Glitches in text")
If response() loads an image into backSurface, we need to restore the conversation charset to it once we're done. This may very well fix a few other similar bugs, but I haven't verified that. svn-id: r52845
Diffstat (limited to 'engines/drascula/converse.cpp')
-rw-r--r--engines/drascula/converse.cpp9
1 files changed, 8 insertions, 1 deletions
diff --git a/engines/drascula/converse.cpp b/engines/drascula/converse.cpp
index 0e70348148..8fecb682fc 100644
--- a/engines/drascula/converse.cpp
+++ b/engines/drascula/converse.cpp
@@ -287,8 +287,12 @@ void DrasculaEngine::response(int function) {
playTalkSequence(function);
if (currentChapter == 2) {
- if (function == 16 || function == 20 || function == 23 || function == 29 || function == 31)
+ bool reloadConversationCharset = false;
+
+ if (function == 16 || function == 20 || function == 23 || function == 29 || function == 31) {
+ reloadConversationCharset = true;
loadPic(menuBackground, backSurface);
+ }
if (function == 16)
animation_16_2();
@@ -300,6 +304,9 @@ void DrasculaEngine::response(int function) {
animation_29_2();
else if (function == 31)
animation_31_2();
+
+ if (reloadConversationCharset)
+ loadPic("car.alg", backSurface);
} else if (currentChapter == 3) {
grr();
}