From e3cc372340ff1ac3ca9a95c3810ad1400bbbaf62 Mon Sep 17 00:00:00 2001 From: Kazhnuz Date: Mon, 11 Feb 2019 19:59:13 +0100 Subject: [PATCH] core/menusystem: fix same glitch in floxbox and listbox --- sonic-boost.love/core/modules/menusystem/flowbox.lua | 2 +- sonic-boost.love/core/modules/menusystem/listbox.lua | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/sonic-boost.love/core/modules/menusystem/flowbox.lua b/sonic-boost.love/core/modules/menusystem/flowbox.lua index a5ce544..4bbe6c8 100644 --- a/sonic-boost.love/core/modules/menusystem/flowbox.lua +++ b/sonic-boost.love/core/modules/menusystem/flowbox.lua @@ -16,7 +16,7 @@ function FlowBox:new(menusystem, name, x, y, w, h, slots_hor, slots_vert) -- soit un multiple du nombre de slot et de leur dimensions end -function Menu:updateWidgetSize() +function FlowBox:updateWidgetSize() self.widget.h = math.floor( self.h / slots_vert ) self.widget.w = math.floor( self.w / slots_hor ) end diff --git a/sonic-boost.love/core/modules/menusystem/listbox.lua b/sonic-boost.love/core/modules/menusystem/listbox.lua index c063a10..9bbedee 100644 --- a/sonic-boost.love/core/modules/menusystem/listbox.lua +++ b/sonic-boost.love/core/modules/menusystem/listbox.lua @@ -11,7 +11,7 @@ function ListBox:new(menusystem, name, x, y, w, h, slots) -- soit un multiple du nombre de slot et de leur hauteur end -function Menu:updateWidgetSize() +function ListBox:updateWidgetSize() self.widget.h = math.floor( self.h / slots ) self.widget.w = self.w end