Update credocument.lua

This commit is contained in:
WS64
2014-07-15 12:17:19 +02:00
parent 0edbc0c6e4
commit c1ecf23c2c

View File

@@ -121,7 +121,7 @@ function CreDocument:loadDocument()
if not self.info.has_pages then
self.info.doc_height = self._document:getFullHeight()
end
if math.max(Screen:getWidth(), Screen:getHeight())/Screen:getDPI() < 7 then
if math.max(Screen:getWidth(),Screen:getHeight())/Screen:getDPI() < DCREREADER_TWO_PAGE_THRESHOLD then
self:setVisiblePageCount(1)
end
end