From d3ef0c30bc1b673925e9ae27c374b4cd107483be Mon Sep 17 00:00:00 2001 From: MoNTE48 Date: Sat, 18 Dec 2021 00:33:21 +0100 Subject: [PATCH] Mobile: fix checkbox scaling --- src/client/clientlauncher.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/client/clientlauncher.cpp b/src/client/clientlauncher.cpp index 49f14351c..9dbf19fe2 100644 --- a/src/client/clientlauncher.cpp +++ b/src/client/clientlauncher.cpp @@ -167,7 +167,8 @@ bool ClientLauncher::run(GameStartData &start_data, const Settings &cmd_args) skin->setSize(gui::EGDS_SCROLLBAR_SIZE, (s32)(14.0f * density)); skin->setSize(gui::EGDS_WINDOW_BUTTON_WIDTH, (s32)(15.0f * density)); if (density > 1.5f) { - std::string sprite_path = porting::path_user + "/textures/base/pack/"; + std::string sprite_path = porting::path_share + DIR_DELIM + "textures" + + DIR_DELIM + "base" + DIR_DELIM + "pack" + DIR_DELIM; if (density > 3.5f) sprite_path.append("checkbox_64.png"); else if (density > 2.0f)