From 76f2d3d78b2d88f36ac5d0f241b8a4b21a00024f Mon Sep 17 00:00:00 2001 From: Torbjörn Andersson Date: Tue, 21 Sep 2010 17:57:02 +0000 Subject: 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 --- engines/drascula/converse.cpp | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) (limited to 'engines') 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(); } -- cgit v1.2.3