diff options
author | Perttu Ahola <celeron55@gmail.com> | 2011-04-09 17:11:31 +0300 |
---|---|---|
committer | Perttu Ahola <celeron55@gmail.com> | 2011-04-09 17:11:31 +0300 |
commit | 6f99cd021b1663e20e07de8161d52ee93e50c96f (patch) | |
tree | 2715d2bb016b25dddc0b07955bec3229878bb162 /src/guiInventoryMenu.cpp | |
parent | 4b54b291ae2ba5a5f214cadad74f0bed29376f84 (diff) | |
download | minetest-6f99cd021b1663e20e07de8161d52ee93e50c96f.tar.gz minetest-6f99cd021b1663e20e07de8161d52ee93e50c96f.tar.bz2 minetest-6f99cd021b1663e20e07de8161d52ee93e50c96f.zip |
set GUIInventoryMenu to be scaled according to the height of the window (not width)
Diffstat (limited to 'src/guiInventoryMenu.cpp')
-rw-r--r-- | src/guiInventoryMenu.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/guiInventoryMenu.cpp b/src/guiInventoryMenu.cpp index b83a84449..ec5328dcc 100644 --- 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; |