Skip to content
Snippets Groups Projects
Commit 41427007 authored by dg's avatar dg
Browse files

Fixed a bug where some parts of the UI could disappear out of screen

git-svn-id: http://svn.net-core.org/repos/t-engine4@5383 51575b47-30f0-44d4-a5cc-537603b46e54
parent bdcee7f9
No related branches found
No related tags found
No related merge requests found
......@@ -219,7 +219,7 @@ end
function _M:getMainMenuItems()
return {
{"Reset interface positions", function() self:resetPlaces() end},
{"Reset interface positions", function() self:resetPlaces() self:saveSettings() end},
}
end
......@@ -261,7 +261,7 @@ function _M:boundPlaces(w, h)
d.scale = 1
d.x = util.bound(d.x, 0, w - d.w)
d.y = util.bound(d.y, 0, w - d.h)
d.y = util.bound(d.y, 0, h - d.h)
elseif d.scale then
d.scale = util.bound(d.scale, 0.5, 2)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment