mirror of
https://github.com/minetest/minetest.git
synced 2024-12-28 00:47:29 +01:00
set GUIInventoryMenu to be scaled according to the height of the window (not width)
This commit is contained in:
parent
4b54b291ae
commit
6f99cd021b
@ -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;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user