add: 90 degree rotation support

demo for issue #51
This commit is contained in:
Qingping Hou
2012-03-08 23:28:16 +08:00
parent 65f95ca204
commit 3dbf9877bc
5 changed files with 85 additions and 25 deletions

View File

@@ -131,11 +131,15 @@ if ARGV[optind] and lfs.attributes(ARGV[optind], "mode") == "directory" then
local running = true
FileChooser:setPath(ARGV[optind])
while running do
local file = FileChooser:choose(0,height)
if file ~= nil then
running = openFile(file)
local file, callback = FileChooser:choose(0,height)
if callback then
callback()
else
running = false
if file ~= nil then
running = openFile(file)
else
running = false
end
end
end
elseif ARGV[optind] and lfs.attributes(ARGV[optind], "mode") == "file" then