diff options
author | Thierry Crozat | 2016-04-16 16:46:38 +0100 |
---|---|---|
committer | Thierry Crozat | 2016-04-16 18:59:27 +0100 |
commit | eef83714322b98fbe02249478ad66b88fd4c1fe2 (patch) | |
tree | b61aab7837ba7910beca084387a8e7ad202eb66d /engines/drascula/graphics.cpp | |
parent | aa95183b93dcfaa74e0e732259c87e9b9d39d518 (diff) | |
download | scummvm-rg350-eef83714322b98fbe02249478ad66b88fd4c1fe2.tar.gz scummvm-rg350-eef83714322b98fbe02249478ad66b88fd4c1fe2.tar.bz2 scummvm-rg350-eef83714322b98fbe02249478ad66b88fd4c1fe2.zip |
DRASCULA: Swap extraSurface and tableSurface use in chapter 6 for Spanish version
This simplifies the code and bring it closer to the original source code.
This should help if we need to debug issues in the future.
Diffstat (limited to 'engines/drascula/graphics.cpp')
-rw-r--r-- | engines/drascula/graphics.cpp | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/engines/drascula/graphics.cpp b/engines/drascula/graphics.cpp index 01bd267158..6bfb2e1823 100644 --- a/engines/drascula/graphics.cpp +++ b/engines/drascula/graphics.cpp @@ -217,6 +217,10 @@ void DrasculaEngine::print_abc(const char *said, int screenX, int screenY) { int letterY = 0, letterX = 0, i; uint len = strlen(said); byte c; + + byte *srcSurface = tableSurface; + if (_lang == kSpanish && currentChapter == 6) + srcSurface = extraSurface; for (uint h = 0; h < len; h++) { c = toupper(said[h]); @@ -241,7 +245,7 @@ void DrasculaEngine::print_abc(const char *said, int screenX, int screenY) { } // for copyRect(letterX, letterY, screenX, screenY, - CHAR_WIDTH, CHAR_HEIGHT, tableSurface, screenSurface); + CHAR_WIDTH, CHAR_HEIGHT, srcSurface, screenSurface); screenX = screenX + CHAR_WIDTH; if (screenX > 317) { |