imgui: scale the whole UI by factor from configuration

This commit is contained in:
Sebastian Krzyszkowiak 2019-04-07 23:26:54 +02:00
parent 569834bce4
commit d93e1a1aca
No known key found for this signature in database
GPG key ID: E8F235CF3BDBC3FF

View file

@ -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;