mirror of
https://github.com/minetest/minetest.git
synced 2024-11-27 01:53:45 +01:00
Fix texture paths for system-installed builds
* window icon * custom touchscreen checkbox sprites
This commit is contained in:
parent
25ef8f3934
commit
d71872af23
@ -150,7 +150,7 @@ 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 + "/textures/base/pack/";
|
||||
if (density > 3.5f)
|
||||
sprite_path.append("checkbox_64.png");
|
||||
else if (density > 2.0f)
|
||||
|
@ -210,7 +210,7 @@ bool RenderingEngine::setupTopLevelWindow()
|
||||
bool RenderingEngine::setWindowIcon()
|
||||
{
|
||||
irr_ptr<video::IImage> img(driver->createImageFromFile(
|
||||
(porting::path_user + "/textures/base/pack/logo.png").c_str()));
|
||||
(porting::path_share + "/textures/base/pack/logo.png").c_str()));
|
||||
if (!img) {
|
||||
warningstream << "Could not load icon file." << std::endl;
|
||||
return false;
|
||||
|
Loading…
Reference in New Issue
Block a user