forked from Mirrorlandia_minetest/minetest
Rename menu background to menubg.png, move unknown_block.png and unknown_object.png to client, make generating a placeholder image for the filename "" not cause an error
This commit is contained in:
parent
705f142b8d
commit
026979e39d
Before Width: | Height: | Size: 1.5 KiB After Width: | Height: | Size: 1.5 KiB |
Before Width: | Height: | Size: 582 B After Width: | Height: | Size: 582 B |
Before Width: | Height: | Size: 489 B After Width: | Height: | Size: 489 B |
@ -1021,7 +1021,7 @@ void drawMenuBackground(video::IVideoDriver* driver)
|
|||||||
core::dimension2d<u32> screensize = driver->getScreenSize();
|
core::dimension2d<u32> screensize = driver->getScreenSize();
|
||||||
|
|
||||||
video::ITexture *bgtexture =
|
video::ITexture *bgtexture =
|
||||||
driver->getTexture(getTexturePath("mud.png").c_str());
|
driver->getTexture(getTexturePath("menubg.png").c_str());
|
||||||
if(bgtexture)
|
if(bgtexture)
|
||||||
{
|
{
|
||||||
s32 texturesize = 128;
|
s32 texturesize = 128;
|
||||||
|
@ -1088,10 +1088,12 @@ bool generate_image(std::string part_of_name, video::IImage *& baseimg,
|
|||||||
|
|
||||||
if(image == NULL)
|
if(image == NULL)
|
||||||
{
|
{
|
||||||
|
if(part_of_name != ""){
|
||||||
errorstream<<"generate_image(): Could not load image \""
|
errorstream<<"generate_image(): Could not load image \""
|
||||||
<<part_of_name<<"\""<<" while building texture"<<std::endl;
|
<<part_of_name<<"\""<<" while building texture"<<std::endl;
|
||||||
errorstream<<"generate_image(): Creating a dummy"
|
errorstream<<"generate_image(): Creating a dummy"
|
||||||
<<" image for \""<<part_of_name<<"\""<<std::endl;
|
<<" image for \""<<part_of_name<<"\""<<std::endl;
|
||||||
|
}
|
||||||
|
|
||||||
// Just create a dummy image
|
// Just create a dummy image
|
||||||
//core::dimension2d<u32> dim(2,2);
|
//core::dimension2d<u32> dim(2,2);
|
||||||
|
Loading…
Reference in New Issue
Block a user