Reenable image scaling in formspecs
authorBlockMen <nmuelll@web.de>
Fri, 9 Aug 2013 18:53:11 +0000 (20:53 +0200)
committerPilzAdam <pilzadam@minetest.net>
Sun, 18 Aug 2013 13:52:04 +0000 (15:52 +0200)
src/guiFormSpecMenu.cpp

index e420f7be4d30f56198363dbb6169f86ce83d2fea..b0cfa38c20783cbc05d87d79190df55bd2a72f2e 100644 (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;