Update credocument.lua

pull/729/head
WS64 10 years ago
parent 0edbc0c6e4
commit c1ecf23c2c

@ -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

Loading…
Cancel
Save