mirror of
https://github.com/luanti-org/luanti.git
synced 2025-07-22 17:18:39 +00:00
Reenable image scaling in formspecs
This commit is contained in:
parent
392689e7ba
commit
72b9b0fe3a
1 changed files with 2 additions and 2 deletions
|
@ -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…
Add table
Add a link
Reference in a new issue