Commit 875e235e authored by Supernature2k's avatar Supernature2k Committed by Subs

all texts resized in vetical mode

parent f88cb2ba
......@@ -32,6 +32,7 @@ This project adheres to [Semantic Versioning](http://semver.org/).
- Display update changelog + update version, if update available
- Added help popups for games options
### Fixed
- Fixed all texts resized in vertical mode
- Fixed security option impossible to disable
- Fixed menu width
- Fixed display scrape informations if rom is inside a subfolder
......
......@@ -841,7 +841,7 @@ std::shared_ptr<Font> Font::getFromTheme(const ThemeData::ThemeElement* elem, un
int size = (orig ? orig->mSize : FONT_SIZE_MEDIUM);
std::string path = (orig ? orig->mPath : getDefaultPath());
float sh = (float)Renderer::getScreenHeight();
float sh = (float)std::min(Renderer::getScreenHeight(), Renderer::getScreenWidth());
if(properties & FONT_SIZE && elem->has("fontSize"))
size = (int)(sh * elem->get<float>("fontSize"));
if(properties & FONT_PATH && elem->has("fontPath"))
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment