diff options
author | Eugene Sandulenko | 2004-12-21 02:12:58 +0000 |
---|---|---|
committer | Eugene Sandulenko | 2004-12-21 02:12:58 +0000 |
commit | ae21c99bad196c685ca3c8b0bbdf83984c636192 (patch) | |
tree | cf39e7947f436a13cc7113f1ab5efa534689c7b4 /sword2/driver/animation.cpp | |
parent | c4191434884a32704b9150fdb4a0a4080c771631 (diff) | |
download | scummvm-rg350-ae21c99bad196c685ca3c8b0bbdf83984c636192.tar.gz scummvm-rg350-ae21c99bad196c685ca3c8b0bbdf83984c636192.tar.bz2 scummvm-rg350-ae21c99bad196c685ca3c8b0bbdf83984c636192.zip |
Added Russian narration message.
svn-id: r16227
Diffstat (limited to 'sword2/driver/animation.cpp')
-rw-r--r-- | sword2/driver/animation.cpp | 15 |
1 files changed, 13 insertions, 2 deletions
diff --git a/sword2/driver/animation.cpp b/sword2/driver/animation.cpp index 524f6e09ae..3b9a83e52a 100644 --- a/sword2/driver/animation.cpp +++ b/sword2/driver/animation.cpp @@ -21,6 +21,7 @@ #include "common/stdafx.h" #include "common/file.h" +#include "common/config-manager.h" #include "sound/vorbis.h" #include "sound/mp3.h" @@ -357,8 +358,18 @@ int32 MoviePlayer::playDummy(const char *filename, MovieTextObject *text[], byte memset(_vm->_graphics->_buffer, 0, _vm->_graphics->_screenWide * MENUDEEP); - byte msg[] = "Cutscene - Narration Only: Press ESC to exit, or visit www.scummvm.org to download cutscene videos"; - byte *data = _vm->_fontRenderer->makeTextSprite(msg, RENDERWIDE, 255, _vm->_speechFontId); + byte *data; + + // Russian version substituted latin characters with cyrillic. That's why + // it renders completely unreadable with default message + if (Common::parseLanguage(ConfMan.get("language")) == Common::RU_RUS) { + byte msg[] = "Po\344uk - to\344\345ko pev\345: hagmute k\344abuwy Ucke\343n, u\344u nocetute ca\343t npoekta u ckava\343te budeo po\344uku"; + data = _vm->_fontRenderer->makeTextSprite(msg, RENDERWIDE, 255, _vm->_speechFontId); + } else { + byte msg[] = "Cutscene - Narration Only: Press ESC to exit, or visit www.scummvm.org to download cutscene videos"; + data = _vm->_fontRenderer->makeTextSprite(msg, RENDERWIDE, 255, _vm->_speechFontId); + } + FrameHeader *frame = (FrameHeader *) data; SpriteInfo msgSprite; byte *msgSurface; |