fixed menu info displaying, replaced debug() by DEBUG()

the replacement of debug() was necessary to be able to access the lua library "debug" (for backtraces etc.)
This commit is contained in:
HW
2012-05-28 18:59:16 +02:00
parent 8191cbe852
commit 60ccd7441e
15 changed files with 50 additions and 54 deletions

View File

@@ -63,13 +63,13 @@ function ReaderZooming:setZoom()
end
function ReaderZooming:onZoom(direction)
debug("zoom", direction)
DEBUG("zoom", direction)
if direction == "in" then
self.zoom = self.zoom * 1.333333
elseif direction == "out" then
self.zoom = self.zoom * 0.75
end
debug("zoom is now at", self.zoom)
DEBUG("zoom is now at", self.zoom)
self:onSetZoomMode("free")
self.view:ZoomUpdate(self.zoom)
return true
@@ -77,7 +77,7 @@ end
function ReaderZooming:onSetZoomMode(what)
if self.zoom_mode ~= what then
debug("setting zoom mode to", what)
DEBUG("setting zoom mode to", what)
self.zoom_mode = what
self:setZoom()
end