projects
/
zefram
/
minetest
/
minetest_engine.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
392689e
)
Reenable image scaling in formspecs
author
BlockMen
<nmuelll@web.de>
Fri, 9 Aug 2013 18:53:11 +0000
(20:53 +0200)
committer
PilzAdam
<pilzadam@minetest.net>
Sun, 18 Aug 2013 13:52:04 +0000
(15:52 +0200)
src/guiFormSpecMenu.cpp
patch
|
blob
|
history
diff --git
a/src/guiFormSpecMenu.cpp
b/src/guiFormSpecMenu.cpp
index e420f7be4d30f56198363dbb6169f86ce83d2fea..b0cfa38c20783cbc05d87d79190df55bd2a72f2e 100644
(file)
--- 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 = sto
i
(v_geom[0]) * (float)imgsize.X;
- geom.Y = sto
i
(v_geom[1]) * (float)imgsize.Y;
+ geom.X = sto
f
(v_geom[0]) * (float)imgsize.X;
+ geom.Y = sto
f
(v_geom[1]) * (float)imgsize.Y;
if(data->bp_set != 2)
errorstream<<"WARNING: invalid use of image without a size[] element"<<std::endl;