core/menusystem: stop inverting w and h when returning widget size
This commit is contained in:
parent
434b5e6865
commit
a1f7995b13
2 changed files with 2 additions and 2 deletions
|
@ -49,7 +49,7 @@ function Menu:updateWidgetSize()
|
||||||
end
|
end
|
||||||
|
|
||||||
function Menu:getWidgetSize(id)
|
function Menu:getWidgetSize(id)
|
||||||
return self.widget.h, self.widget.w
|
return self.widget.w, self.widget.h
|
||||||
end
|
end
|
||||||
|
|
||||||
function Menu:cancelAction()
|
function Menu:cancelAction()
|
||||||
|
|
|
@ -12,7 +12,7 @@ function BaseWidget:new(menu)
|
||||||
|
|
||||||
self:register()
|
self:register()
|
||||||
|
|
||||||
self.height, self.width = self.menu:getWidgetSize()
|
self.width, self.height = self.menu:getWidgetSize()
|
||||||
|
|
||||||
self.canvas = {}
|
self.canvas = {}
|
||||||
self.canvas.texture = nil
|
self.canvas.texture = nil
|
||||||
|
|
Loading…
Reference in a new issue