mirror of
https://github.com/libretro/scummvm.git
synced 2025-01-27 05:32:45 +00:00
Fix position of descriptions in WW
svn-id: r24289
This commit is contained in:
parent
02fb079d0b
commit
1564b76e1e
@ -274,14 +274,15 @@ void AGOSEngine::printVerbOf(uint hitarea_id) {
|
||||
void AGOSEngine::showActionString(const byte *string) {
|
||||
WindowBlock *window;
|
||||
uint x;
|
||||
const uint len = (getGameType() == GType_WW) ? 29 : 53;
|
||||
|
||||
window = _windowArray[1];
|
||||
if (window == NULL || window->text_color == 0)
|
||||
return;
|
||||
|
||||
// Arisme : hack for long strings in the French version
|
||||
if ((strlen((const char*)string) - 1) <= 53)
|
||||
x = (53 - (strlen((const char *)string) - 1)) * 3;
|
||||
if ((strlen((const char*)string) - 1) <= len)
|
||||
x = (len - (strlen((const char *)string) - 1)) * 3;
|
||||
else
|
||||
x = 0;
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user