Skip to content
Snippets Groups Projects
Commit 72b9b0fe authored by BlockMen's avatar BlockMen Committed by PilzAdam
Browse files

Reenable image scaling in formspecs

parent 392689e7
No related branches found
No related tags found
No related merge requests found
......@@ -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;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment