Reduced the help system size in the media viewer and PDF viewer

This commit is contained in:
Leon Styhre 2023-06-30 21:59:22 +02:00
parent 61b6fe2b33
commit bf106711cb
2 changed files with 4 additions and 2 deletions

View file

@ -39,7 +39,7 @@ bool MediaViewer::startMediaViewer(FileData* game)
if (mHelpInfoPosition == HelpInfoPosition::DISABLED)
mFrameHeight = 0.0f;
else
mFrameHeight = Font::get(FONT_SIZE_SMALL)->getLetterHeight() * 1.8f;
mFrameHeight = Font::get(FONT_SIZE_MINI)->getLetterHeight() * 1.9f;
mGame = game;
mHasManual = (mGame->getManualPath() != "");
@ -50,6 +50,7 @@ bool MediaViewer::startMediaViewer(FileData* game)
return false;
HelpStyle style;
style.font = Font::get(FONT_SIZE_MINI);
style.origin = {0.5f, 0.5f};
style.iconColor = 0xAAAAAAFF;
style.textColor = 0xAAAAAAFF;

View file

@ -137,9 +137,10 @@ bool PDFViewer::startPDFViewer(FileData* game)
if (mHelpInfoPosition == HelpInfoPosition::DISABLED)
mFrameHeight = 0.0f;
else
mFrameHeight = Font::get(FONT_SIZE_SMALL)->getLetterHeight() * 1.8f;
mFrameHeight = Font::get(FONT_SIZE_MINI)->getLetterHeight() * 1.9f;
HelpStyle style;
style.font = Font::get(FONT_SIZE_MINI);
style.origin = {0.5f, 0.5f};
style.iconColor = 0xAAAAAAFF;
style.textColor = 0xAAAAAAFF;