[Scummvm-cvs-logs] CVS: scummvm/sword2/driver animation.cpp,1.45,1.46
Eugene Sandulenko
sev at users.sourceforge.net
Mon Dec 20 18:14:01 CET 2004
- Previous message: [Scummvm-cvs-logs] CVS: docs/docbook devguide.pdf,1.1.1.1,1.2 devguide.xml,1.2,1.3 faq.html,1.2,1.3 faq.pdf,1.2,1.3 faq.xml,1.2,1.3 manual.html,1.10,1.11 manual.pdf,1.10,1.11 manual.txt,1.9,1.10 manual.xml,1.12,1.13
- Next message: [Scummvm-cvs-logs] CVS: web compatibility.php,1.369,1.370
- Messages sorted by:
[ date ]
[ thread ]
[ subject ]
[ author ]
Update of /cvsroot/scummvm/scummvm/sword2/driver
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv29373
Modified Files:
animation.cpp
Log Message:
Added Russian narration message.
Index: animation.cpp
===================================================================
RCS file: /cvsroot/scummvm/scummvm/sword2/driver/animation.cpp,v
retrieving revision 1.45
retrieving revision 1.46
diff -u -d -r1.45 -r1.46
--- animation.cpp 5 Dec 2004 17:42:20 -0000 1.45
+++ animation.cpp 21 Dec 2004 02:12:58 -0000 1.46
@@ -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 @@
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;
- Previous message: [Scummvm-cvs-logs] CVS: docs/docbook devguide.pdf,1.1.1.1,1.2 devguide.xml,1.2,1.3 faq.html,1.2,1.3 faq.pdf,1.2,1.3 faq.xml,1.2,1.3 manual.html,1.10,1.11 manual.pdf,1.10,1.11 manual.txt,1.9,1.10 manual.xml,1.12,1.13
- Next message: [Scummvm-cvs-logs] CVS: web compatibility.php,1.369,1.370
- Messages sorted by:
[ date ]
[ thread ]
[ subject ]
[ author ]
More information about the Scummvm-git-logs
mailing list