diff options
author | rubidium <rubidium@openttd.org> | 2010-07-31 09:40:43 +0000 |
---|---|---|
committer | rubidium <rubidium@openttd.org> | 2010-07-31 09:40:43 +0000 |
commit | e469a94a2df943c5595e91b2752782cfa4b2ff3f (patch) | |
tree | fac840c8181287080cea264e90915aa361596f88 /src/newgrf_gui.cpp | |
parent | f7794e313f993bbb8394bfc6c27f6cd00fc534a0 (diff) | |
download | openttd-e469a94a2df943c5595e91b2752782cfa4b2ff3f.tar.xz |
(svn r20253) -Codechange: change GRFConfig::windows_paletted into a bitmask/bitset
Diffstat (limited to 'src/newgrf_gui.cpp')
-rw-r--r-- | src/newgrf_gui.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/newgrf_gui.cpp b/src/newgrf_gui.cpp index 77bcedb63..dec6ca9d8 100644 --- a/src/newgrf_gui.cpp +++ b/src/newgrf_gui.cpp @@ -96,7 +96,7 @@ static void ShowNewGRFInfo(const GRFConfig *c, uint x, uint y, uint right, uint y = DrawStringMultiLine(x, right, y, bottom, STR_NEWGRF_SETTINGS_PARAMETER); /* Draw the palette of the NewGRF */ - SetDParamStr(0, c->windows_paletted ? "Windows" : "DOS"); + SetDParamStr(0, (c->palette & GRFP_USE_WINDOWS) ? "Windows" : "DOS"); y = DrawStringMultiLine(x, right, y, bottom, STR_NEWGRF_SETTINGS_PALETTE); } @@ -592,7 +592,7 @@ struct NewGRFWindow : public QueryStringBaseWindow { case SNGRFS_TOGGLE_PALETTE: if (this->active_sel != NULL || !this->editable) { - this->active_sel->windows_paletted ^= true; + this->active_sel->palette ^= GRFP_USE_MASK; this->SetDirty(); } break; |