Skip to content

Commit 72b9b0f

Browse files
BlockMenPilzAdam
authored andcommittedAug 18, 2013
Reenable image scaling in formspecs
1 parent 392689e commit 72b9b0f

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed
 

‎src/guiFormSpecMenu.cpp

+2-2
Original file line numberDiff line numberDiff line change
@@ -410,8 +410,8 @@ void GUIFormSpecMenu::parseImage(parserData* data,std::string element) {
410410
pos.Y += stof(v_pos[1]) * (float) spacing.Y;
411411

412412
v2s32 geom;
413-
geom.X = stoi(v_geom[0]) * (float)imgsize.X;
414-
geom.Y = stoi(v_geom[1]) * (float)imgsize.Y;
413+
geom.X = stof(v_geom[0]) * (float)imgsize.X;
414+
geom.Y = stof(v_geom[1]) * (float)imgsize.Y;
415415

416416
if(data->bp_set != 2)
417417
errorstream<<"WARNING: invalid use of image without a size[] element"<<std::endl;

0 commit comments

Comments
 (0)
Please sign in to comment.