GLK: Fix initialization of text colors

This commit is contained in:
Paul Gilbert 2020-07-28 21:01:20 -07:00
parent 8f0f6825bb
commit 9841fe4d20
2 changed files with 7 additions and 3 deletions

View File

@ -107,8 +107,12 @@ Conf::Conf(InterpreterType interpType) : _interpType(interpType), _graphics(true
if (_screenFormat.bytesPerPixel == 1)
_graphics = false;
Common::copy(T_STYLES, T_STYLES + style_NUMSTYLES, _tStyles);
Common::copy(G_STYLES, G_STYLES + style_NUMSTYLES, _gStyles);
for (int i = 0; i < style_NUMSTYLES; ++i) {
_tStyles[i].fg = parseColor(T_STYLES[i].fg);
_tStyles[i].bg = parseColor(T_STYLES[i].bg);
_gStyles[i].fg = parseColor(G_STYLES[i].fg);
_gStyles[i].bg = parseColor(G_STYLES[i].bg);
}
Common::copy(_tStyles, _tStyles + style_NUMSTYLES, _tStylesDefault);
Common::copy(_gStyles, _gStyles + style_NUMSTYLES, _gStylesDefault);

View File

@ -83,7 +83,7 @@ GlkEngine::~GlkEngine() {
void GlkEngine::initialize() {
createConfiguration();
_conf->load();
_conf->flush();
//_conf->flush();
initGraphicsMode();
createDebugger();