mirror of
https://github.com/minetest/minetest.git
synced 2024-11-27 10:03:45 +01:00
Reenable image scaling in formspecs
This commit is contained in:
parent
392689e7ba
commit
72b9b0fe3a
@ -410,8 +410,8 @@ void GUIFormSpecMenu::parseImage(parserData* data,std::string element) {
|
||||
pos.Y += stof(v_pos[1]) * (float) spacing.Y;
|
||||
|
||||
v2s32 geom;
|
||||
geom.X = stoi(v_geom[0]) * (float)imgsize.X;
|
||||
geom.Y = stoi(v_geom[1]) * (float)imgsize.Y;
|
||||
geom.X = stof(v_geom[0]) * (float)imgsize.X;
|
||||
geom.Y = stof(v_geom[1]) * (float)imgsize.Y;
|
||||
|
||||
if(data->bp_set != 2)
|
||||
errorstream<<"WARNING: invalid use of image without a size[] element"<<std::endl;
|
||||
|
Loading…
Reference in New Issue
Block a user