mirror of
https://github.com/libretro/scummvm.git
synced 2024-12-04 08:17:40 +00:00
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
This commit is contained in:
parent
88e25e6f25
commit
76f2d3d78b
@ -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();
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user