mirror of
https://gitlab.com/dosowisko.net/libsuperderpy.git
synced 2024-12-05 00:38:00 +01:00
imgui: scale the whole UI by factor from configuration
This commit is contained in:
parent
569834bce4
commit
d93e1a1aca
1 changed files with 2 additions and 0 deletions
|
@ -414,6 +414,8 @@ SYMBOL_EXPORT int libsuperderpy_start(struct Game* game) {
|
|||
ImGui_ImplAllegro5_Init(game->display);
|
||||
igStyleColorsDark(NULL);
|
||||
igGetStyle()->FrameBorderSize = 1.0;
|
||||
ImGuiIO* io = igGetIO();
|
||||
io->FontGlobalScale = strtod(GetConfigOptionDefault(game, "SuperDerpy", "scale", "1"), NULL);
|
||||
#endif
|
||||
|
||||
return 0;
|
||||
|
|
Loading…
Reference in a new issue