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:
4b54b29
)
set GUIInventoryMenu to be scaled according to the height of the window (not width)
author
Perttu Ahola
<celeron55@gmail.com>
Sat, 9 Apr 2011 14:11:31 +0000
(17:11 +0300)
committer
Perttu Ahola
<celeron55@gmail.com>
Sat, 9 Apr 2011 14:11:31 +0000
(17:11 +0300)
src/guiInventoryMenu.cpp
patch
|
blob
|
history
diff --git
a/src/guiInventoryMenu.cpp
b/src/guiInventoryMenu.cpp
index b83a84449043cd4e646863bede945805bb3b7a51..ec5328dcc52aa9b75c439b6104a3f64b4ed162e9 100644
(file)
--- a/
src/guiInventoryMenu.cpp
+++ b/
src/guiInventoryMenu.cpp
@@
-130,9
+130,9
@@
void GUIInventoryMenu::regenerateGui(v2u32 screensize)
spacing = v2s32(60,56);
imgsize = v2s32(48,48);*/
- padding = v2s32(screensize.
X/48, screensize.X/48
);
- spacing = v2s32(screensize.
X/16, screensize.X/17
);
- imgsize = v2s32(screensize.
X/20, screensize.X/20
);
+ padding = v2s32(screensize.
Y/40, screensize.Y/40
);
+ spacing = v2s32(screensize.
Y/12, screensize.Y/13
);
+ imgsize = v2s32(screensize.
Y/15, screensize.Y/15
);
s32 helptext_h = 15;