Final touches: removed unused declaration in gdrv.

Removed unused Msg entries and added new check.
This commit is contained in:
Muzychenko Andrey 2022-08-29 14:12:25 +03:00
parent a845d0d630
commit 56e1ead3b8
2 changed files with 5 additions and 5 deletions

View File

@ -1,7 +1,5 @@
#pragma once
class TTextBox;
enum class BitmapTypes : uint8_t
{
None = 0,
@ -85,7 +83,6 @@ public:
static void grtext_draw_ttext_in_box();
static void ApplyPalette(gdrv_bitmap8& bmp);
static void CreatePreview(gdrv_bitmap8& bmp);
private:
static ColorRgba current_palette[256];
};

View File

@ -242,8 +242,6 @@ enum class Msg : int
Menu1_1024x768,
Menu1_WindowUniformScale,
Menu1_AlternativeRender,
Menu1_Language,
Menu1_LanguageMax,
Menu1_Game,
Menu1_Options,
Menu1_Select_Players,
@ -300,6 +298,11 @@ struct TextArray
Set(msgPair.first, languagePair.first, languagePair.second);
}
}
for (auto i = Msg::Min; i < Msg::Max; i = static_cast<Msg>(static_cast<int>(i) + 1))
{
assertm(contains(i, Lang::English), "English text is mandatory for all keys");
}
}
LPCSTR Get(Msg msgId, Lang langId) const