mirror of
https://github.com/koreader/koreader.git
synced 2025-08-10 00:52:38 +00:00
add page status to readerrolling for better page view_mode support
* now when rendering in page view mode, we only keep track of page number instead of pos inside document. Because using pos inside document for page view mode is really a bad idea and will lead to many unsovlabe bugs...
This commit is contained in:
@@ -234,13 +234,6 @@ function Document:drawPage(target, x, y, rect, pageno, zoom, rotation, render_mo
|
||||
rect.w, rect.h)
|
||||
end
|
||||
|
||||
function Document:drawCurrentView(target, x, y, rect, pos)
|
||||
self._document:gotoPos(pos)
|
||||
tile_bb = Blitbuffer.new(rect.w, rect.h)
|
||||
self._document:drawCurrentPage(tile_bb)
|
||||
target:blitFrom(tile_bb, x, y, 0, 0, rect.w, rect.h)
|
||||
end
|
||||
|
||||
function Document:getPageText(pageno)
|
||||
-- is this worth caching? not done yet.
|
||||
local page = self._document:openPage(pageno)
|
||||
|
||||
Reference in New Issue
Block a user