mirror of
https://github.com/luanti-org/luanti.git
synced 2025-06-27 16:36:03 +00:00
Split gui_scaling to gui_scaling + hud_scaling as those elements need different handling on some devices
This commit is contained in:
parent
d576235409
commit
e201620ee1
3 changed files with 10 additions and 9 deletions
|
@ -156,7 +156,7 @@ void TouchScreenGUI::initButton(touch_gui_button_id id, rect<s32> button_rect,
|
|||
}
|
||||
|
||||
static int getMaxControlPadSize(float density) {
|
||||
return 200 * density * g_settings->getFloat("gui_scaling");
|
||||
return 200 * density * g_settings->getFloat("hud_scaling");
|
||||
}
|
||||
|
||||
void TouchScreenGUI::init(ISimpleTextureSource* tsrc, float density)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue