aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBlockMen <nmuelll@web.de>2013-08-09 20:53:11 +0200
committerPilzAdam <pilzadam@minetest.net>2013-08-18 15:52:04 +0200
commit72b9b0fe3a3c3ab920c1225cfe0c2bd02ca4be7b (patch)
tree02006e75efc3dae808c28c8baf9fb25e8aaf179d
parent392689e7ba9980efcea87ca6cb9fcfa64330d009 (diff)
downloadminetest-72b9b0fe3a3c3ab920c1225cfe0c2bd02ca4be7b.tar.gz
minetest-72b9b0fe3a3c3ab920c1225cfe0c2bd02ca4be7b.tar.bz2
minetest-72b9b0fe3a3c3ab920c1225cfe0c2bd02ca4be7b.zip
Reenable image scaling in formspecs
-rw-r--r--src/guiFormSpecMenu.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/guiFormSpecMenu.cpp b/src/guiFormSpecMenu.cpp
index e420f7be4..b0cfa38c2 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"<<std::endl;