set GUIInventoryMenu to be scaled according to the height of the window (not width)
authorPerttu Ahola <celeron55@gmail.com>
Sat, 9 Apr 2011 14:11:31 +0000 (17:11 +0300)
committerPerttu Ahola <celeron55@gmail.com>
Sat, 9 Apr 2011 14:11:31 +0000 (17:11 +0300)
src/guiInventoryMenu.cpp

index b83a84449043cd4e646863bede945805bb3b7a51..ec5328dcc52aa9b75c439b6104a3f64b4ed162e9 100644 (file)
@@ -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;