You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
koreader/frontend/document
chrox 2cd5a083ae fix getAutoBBox failed bug
If getAutoBBox is fed with a blank page the returned bbox will be
much smaller than the native page dimensions. The problem is that
in zoom to 'content*' mode document renderer will try to render
the whole page at a zoom level that can cover the screen with the
bbox region of the page. That's if the blank page size is 3000*4000
and the returned autobbox is 300*400, the screen size is 600*800,
then the page will be rendered in 3000*(600/300)*4000*(800/400)
which is so large that the cache manager will not accept.

This patch just check if the returned autobbox is considerablely
much smaller than the native page dimensions. If so it will return
the manual bbox.

This patch should fix #293. And it's tested with the case provided
by @Markismus in #291.
11 years ago
..
credocument.lua only set two pages mode for crengine in kindle dxg 11 years ago
djvudocument.lua synchronize hightlights in non-/reflowing modes 11 years ago
document.lua free blitbuffer as soon as tile is kicked out from cache 11 years ago
koptinterface.lua fix getAutoBBox failed bug 11 years ago
pdfdocument.lua synchronize hightlights in non-/reflowing modes 11 years ago