mirror of
https://github.com/ZDoom/raze-gles.git
synced 2024-11-10 14:52:01 +00:00
- fixed alignment of Exhumed's menu captions.
This commit is contained in:
parent
5a90f35aed
commit
f72b283519
2 changed files with 2 additions and 1 deletions
|
@ -176,7 +176,7 @@ FSavegameInfo GameInterface::GetSaveSig()
|
|||
void GameInterface::DrawMenuCaption(const DVector2& origin, const char* text)
|
||||
{
|
||||
// Fixme: should use the extracted font from the menu items (i.e. BigFont) and a stretched box for the menu items.
|
||||
DrawText(twod, SmallFont, CR_UNTRANSLATED, 160 - SmallFont->StringWidth(text), 10, text, DTA_FullscreenScale, FSMode_Fit320x200Top, TAG_DONE);
|
||||
DrawText(twod, SmallFont, CR_UNTRANSLATED, 160 - SmallFont->StringWidth(text)/2, 10, text, DTA_FullscreenScale, FSMode_Fit320x200Top, TAG_DONE);
|
||||
}
|
||||
|
||||
|
||||
|
|
|
@ -99,6 +99,7 @@ SavegameHelper::SavegameHelper(const char* name, ...)
|
|||
void SavegameHelper::Load()
|
||||
{
|
||||
auto fr = ReadSavegameChunk(Name);
|
||||
if (!fr.isOpen()) return;
|
||||
for (auto& entry : Elements)
|
||||
{
|
||||
auto read = fr.Read(entry.first, entry.second);
|
||||
|
|
Loading…
Reference in a new issue