PINK: Fix menu in Hebrew version.

Unfortunately, we have no Hebrew glyphs in Win95 fonts.
This commit is contained in:
Eugene Sandulenko 2021-04-30 15:20:23 +02:00
parent d98473ba47
commit 5fa661f1b0
No known key found for this signature in database
GPG Key ID: 014D387312D34F08
3 changed files with 12 additions and 5 deletions

View File

@ -24,6 +24,7 @@
#include "graphics/macgui/mactext.h"
#include "graphics/palette.h"
#include "pink/pink.h"
#include "pink/cel_decoder.h"
#include "pink/director.h"
#include "pink/objects/actions/action_sound.h"
@ -88,11 +89,16 @@ static void redrawCallback(void *ref) {
}
}
Director::Director()
Director::Director(PinkEngine *vm)
: _surface(640, 480), _textRendered(false) {
_wm = new Graphics::MacWindowManager(Graphics::kWMModeNoDesktop | Graphics::kWMModeAutohideMenu
uint32 wmMode = Graphics::kWMModeNoDesktop | Graphics::kWMModeAutohideMenu
| Graphics::kWMModalMenuMode | Graphics::kWMModeForceBuiltinFonts
| Graphics::kWMModeUnicode | Graphics::kWMModeWin95);
| Graphics::kWMModeUnicode;
if (vm->getLanguage() != Common::HE_ISR) // We do not have Hebrew font in MS fonts :(
wmMode |= Graphics::kWMModeWin95;
_wm = new Graphics::MacWindowManager(wmMode);
_wm->setScreen(&_surface);
_wm->setMenuHotzone(Common::Rect(0, 0, 640, 23));

View File

@ -40,10 +40,11 @@ class Actor;
class ActionCEL;
class ActionSound;
class ActionText;
class PinkEngine;
class Director {
public:
Director();
Director(PinkEngine *vm);
~Director();
void update();

View File

@ -80,7 +80,7 @@ Common::Error PinkEngine::init() {
}
setDebugger(new Console(this));
_director = new Director();
_director = new Director(this);
initMenu();