Skip to content

Commit

Permalink
Reenable image scaling in formspecs
Browse files Browse the repository at this point in the history
  • Loading branch information
BlockMen authored and PilzAdam committed Aug 18, 2013
1 parent 392689e commit 72b9b0f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/guiFormSpecMenu.cpp
Expand Up @@ -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;
Expand Down

0 comments on commit 72b9b0f

Please sign in to comment.