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

Keybind screen scrolls correctly on 800x600

git-svn-id: http://svn.net-core.org/repos/t-engine4@672 51575b47-30f0-44d4-a5cc-537603b46e54
parent f08bb117
No related branches found
No related tags found
No related merge requests found
......@@ -180,7 +180,7 @@ function _M:drawSelectionList(s, x, y, hskip, list, sel, prop, scroll, max, colo
selcolor = selcolor or {0,255,255}
color = color or {255,255,255}
max = max or 99999
scroll = util.bound(scroll or 1, 1, max)
scroll = util.bound(scroll or 1, 1, #list)
for i = scroll, math.min(#list, scroll + max - 1) do
local v = list[i]
......
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