mirror of
https://github.com/libretro/scummvm.git
synced 2025-03-07 02:39:56 +00:00
PINK: draw hebrew characters on pages
This commit is contained in:
parent
432dd88bdb
commit
f8e2cc0f0f
@ -90,6 +90,13 @@ void ActionText::start() {
|
||||
_text = Common::String(str).decode(Common::kWindows1251);
|
||||
break;
|
||||
|
||||
case Common::HE_ISR:
|
||||
_text = Common::String(str).decode(Common::kWindows1255);
|
||||
if (!_centered) {
|
||||
align = Graphics::kTextAlignRight;
|
||||
}
|
||||
break;
|
||||
|
||||
case Common::EN_ANY:
|
||||
default:
|
||||
_text = Common::String(str);
|
||||
@ -131,6 +138,9 @@ void ActionText::end() {
|
||||
void ActionText::draw(Graphics::ManagedSurface *surface) {
|
||||
// not working
|
||||
Graphics::TextAlign alignment = _centered ? Graphics::kTextAlignCenter : Graphics::kTextAlignLeft;
|
||||
if (!_centered && _actor->getPage()->getGame()->getLanguage() == Common::HE_ISR) {
|
||||
alignment = Graphics::kTextAlignRight;
|
||||
}
|
||||
Graphics::MacFont *font = new Graphics::MacFont();
|
||||
Director *director = _actor->getPage()->getGame()->getDirector();
|
||||
Graphics::MacText text(_text, &director->getWndManager(), font, _textColorIndex, _backgroundColorIndex, _xRight - _xLeft, alignment);
|
||||
|
Loading…
x
Reference in New Issue
Block a user