1
0
Fork 0

Reenable image scaling in formspecs

mutilcraft-mt53
BlockMen 2013-08-09 20:53:11 +02:00 committed by PilzAdam
parent 392689e7ba
commit 72b9b0fe3a
1 changed files with 2 additions and 2 deletions

View File

@ -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;