diff options
author | BlockMen <nmuelll@web.de> | 2013-08-09 20:53:11 +0200 |
---|---|---|
committer | PilzAdam <pilzadam@minetest.net> | 2013-08-18 15:52:04 +0200 |
commit | 72b9b0fe3a3c3ab920c1225cfe0c2bd02ca4be7b (patch) | |
tree | 02006e75efc3dae808c28c8baf9fb25e8aaf179d /src | |
parent | 392689e7ba9980efcea87ca6cb9fcfa64330d009 (diff) | |
download | minetest-72b9b0fe3a3c3ab920c1225cfe0c2bd02ca4be7b.tar.gz minetest-72b9b0fe3a3c3ab920c1225cfe0c2bd02ca4be7b.tar.bz2 minetest-72b9b0fe3a3c3ab920c1225cfe0c2bd02ca4be7b.zip |
Reenable image scaling in formspecs
Diffstat (limited to 'src')
-rw-r--r-- | src/guiFormSpecMenu.cpp | 4 |
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; |