mirror of
https://github.com/koreader/koreader.git
synced 2025-08-10 00:52:38 +00:00
CRE: use same marks in top and bottom progress bars
Feed to crengine the same ticks (build from the TOC entries) that we use in the bottom status bar. (crengine otherwise builds a tick for each DocFragment, which most often is really different than what's seen in the bottom bar.)
This commit is contained in:
@@ -767,6 +767,10 @@ function CreDocument:setViewDimen(dimen)
|
||||
self._document:setViewDimen(dimen.w, dimen.h)
|
||||
end
|
||||
|
||||
function CreDocument:setHeaderProgressMarks(pages, ticks)
|
||||
self._document:setHeaderProgressMarks(pages, ticks)
|
||||
end
|
||||
|
||||
function CreDocument:setHeaderFont(new_font)
|
||||
if new_font then
|
||||
logger.dbg("CreDocument: set header font", new_font)
|
||||
|
||||
Reference in New Issue
Block a user