From: BlockMen Date: Fri, 9 Aug 2013 18:53:11 +0000 (+0200) Subject: Reenable image scaling in formspecs X-Git-Url: http://81.2.79.47:8989/gitweb/?a=commitdiff_plain;h=72b9b0fe3a3c3ab920c1225cfe0c2bd02ca4be7b;p=zefram%2Fminetest%2Fminetest_engine.git Reenable image scaling in formspecs --- diff --git a/src/guiFormSpecMenu.cpp b/src/guiFormSpecMenu.cpp index e420f7be..b0cfa38c 100644 --- a/src/guiFormSpecMenu.cpp +++ b/src/guiFormSpecMenu.cpp @@ -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"<