Mobile: fix checkbox scaling

master
MoNTE48 2021-12-18 00:33:21 +01:00
parent d07f0a660d
commit d3ef0c30bc
1 changed files with 2 additions and 1 deletions

View File

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