mirror of
https://github.com/libretro/scummvm.git
synced 2025-02-14 16:07:39 +00:00
GLK: Fix initialization of text colors
This commit is contained in:
parent
8f0f6825bb
commit
9841fe4d20
@ -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);
|
||||
|
@ -83,7 +83,7 @@ GlkEngine::~GlkEngine() {
|
||||
void GlkEngine::initialize() {
|
||||
createConfiguration();
|
||||
_conf->load();
|
||||
_conf->flush();
|
||||
//_conf->flush();
|
||||
|
||||
initGraphicsMode();
|
||||
createDebugger();
|
||||
|
Loading…
x
Reference in New Issue
Block a user