mirror of
https://github.com/luanti-org/luanti.git
synced 2025-06-27 16:36:03 +00:00
Make button sprites (scrollbar arrows) DPI-aware (#14772)
This commit is contained in:
parent
fb6ceb2664
commit
4c001bd248
9 changed files with 67 additions and 61 deletions
|
@ -352,6 +352,7 @@ void ClientLauncher::config_guienv()
|
|||
|
||||
float density = rangelim(g_settings->getFloat("gui_scaling"), 0.5f, 20) *
|
||||
RenderingEngine::getDisplayDensity();
|
||||
skin->setScale(density);
|
||||
skin->setSize(gui::EGDS_CHECK_BOX_WIDTH, (s32)(17.0f * density));
|
||||
skin->setSize(gui::EGDS_SCROLLBAR_SIZE, (s32)(21.0f * density));
|
||||
skin->setSize(gui::EGDS_WINDOW_BUTTON_WIDTH, (s32)(15.0f * density));
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue