|
|
@ -53,6 +53,7 @@ GameMode _game_mode;
|
|
|
|
SwitchMode _switch_mode; ///< The next mainloop command.
|
|
|
|
SwitchMode _switch_mode; ///< The next mainloop command.
|
|
|
|
PauseMode _pause_mode;
|
|
|
|
PauseMode _pause_mode;
|
|
|
|
Palette _cur_palette;
|
|
|
|
Palette _cur_palette;
|
|
|
|
|
|
|
|
std::mutex _cur_palette_mutex;
|
|
|
|
std::string _switch_baseset;
|
|
|
|
std::string _switch_baseset;
|
|
|
|
|
|
|
|
|
|
|
|
static byte _stringwidth_table[FS_END][224]; ///< Cache containing width of often used characters. @see GetCharacterWidth()
|
|
|
|
static byte _stringwidth_table[FS_END][224]; ///< Cache containing width of often used characters. @see GetCharacterWidth()
|
|
|
@ -1162,6 +1163,7 @@ void DoPaletteAnimations();
|
|
|
|
|
|
|
|
|
|
|
|
void GfxInitPalettes()
|
|
|
|
void GfxInitPalettes()
|
|
|
|
{
|
|
|
|
{
|
|
|
|
|
|
|
|
std::lock_guard<std::mutex> lock_state(_cur_palette_mutex);
|
|
|
|
memcpy(&_cur_palette, &_palette, sizeof(_cur_palette));
|
|
|
|
memcpy(&_cur_palette, &_palette, sizeof(_cur_palette));
|
|
|
|
DoPaletteAnimations();
|
|
|
|
DoPaletteAnimations();
|
|
|
|
}
|
|
|
|
}
|
|
|
|