From 093f815d2c9459fa81c82752e5cd9f35cefe08a1 Mon Sep 17 00:00:00 2001 From: Deve Date: Sun, 16 Dec 2018 21:57:19 +0100 Subject: [PATCH] Restore larger row height for android --- src/states_screens/online/server_selection.cpp | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/src/states_screens/online/server_selection.cpp b/src/states_screens/online/server_selection.cpp index 69db29a4a..7f9d9bfb0 100755 --- a/src/states_screens/online/server_selection.cpp +++ b/src/states_screens/online/server_selection.cpp @@ -140,8 +140,11 @@ void ServerSelection::init() m_searcher->clearListeners(); m_searcher->addListener(this); m_icon_bank->setScale((float)getHeight() / 15.0f / 128.0f); - m_server_list_widget->setIcons(m_icon_bank, - int(getHeight() / 15.0f)); + + int row_height = UserConfigParams::m_hidpi_enabled ? getHeight() / 12.0f + : getHeight() / 15.0f; + + m_server_list_widget->setIcons(m_icon_bank, row_height); m_sort_desc = false; /** Triggers the loading of the server list in the servers manager. */ refresh(true);