mirror of
https://gitlab.com/OpenMW/openmw.git
synced 2025-01-26 18:35:20 +00:00
Validate 'ttf resolution' option value
This commit is contained in:
parent
8da099713e
commit
f89393fd62
@ -309,7 +309,7 @@ namespace MWGui
|
|||||||
// to allow to configure font size via config file, without need to edit XML file.
|
// to allow to configure font size via config file, without need to edit XML file.
|
||||||
// Also we should take UI scaling factor in account
|
// Also we should take UI scaling factor in account
|
||||||
int resolution = Settings::Manager::getInt("ttf resolution", "GUI");
|
int resolution = Settings::Manager::getInt("ttf resolution", "GUI");
|
||||||
resolution = std::max(0, resolution);
|
resolution = std::min(960, std::max(48, resolution));
|
||||||
|
|
||||||
float uiScale = Settings::Manager::getFloat("scaling factor", "GUI");
|
float uiScale = Settings::Manager::getFloat("scaling factor", "GUI");
|
||||||
|
|
||||||
|
@ -27,7 +27,7 @@ ttf resolution
|
|||||||
--------------
|
--------------
|
||||||
|
|
||||||
:Type: integer
|
:Type: integer
|
||||||
:Range: > 0
|
:Range: 48 to 960
|
||||||
:Default: 96
|
:Default: 96
|
||||||
|
|
||||||
Allows to specify resolution for in-game TrueType fonts.
|
Allows to specify resolution for in-game TrueType fonts.
|
||||||
|
Loading…
x
Reference in New Issue
Block a user