core/menusystem: stop inverting w and h when returning widget size

This commit is contained in:
Kazhnuz 2019-02-12 18:48:51 +01:00
parent 434b5e6865
commit a1f7995b13
2 changed files with 2 additions and 2 deletions

View file

@ -49,7 +49,7 @@ function Menu:updateWidgetSize()
end
function Menu:getWidgetSize(id)
return self.widget.h, self.widget.w
return self.widget.w, self.widget.h
end
function Menu:cancelAction()

View file

@ -12,7 +12,7 @@ function BaseWidget:new(menu)
self:register()
self.height, self.width = self.menu:getWidgetSize()
self.width, self.height = self.menu:getWidgetSize()
self.canvas = {}
self.canvas.texture = nil