2
0
mirror of https://github.com/koreader/koreader synced 2024-10-31 21:20:20 +00:00

Merge pull request #666 from tigran123/crehead

Enable chapter marks in crengine header.
This commit is contained in:
{Qingping,Dave} Hou 2012-12-16 10:26:33 -08:00
commit ea2bae5531

View File

@ -66,6 +66,7 @@ static int openDocument(lua_State *L) {
doc->text_view->setViewMode(view_mode, -1);
doc->text_view->Resize(width, height);
doc->text_view->LoadDocument(file_name);
doc->text_view->setPageHeaderInfo(PGHDR_AUTHOR|PGHDR_TITLE|PGHDR_PAGE_NUMBER|PGHDR_PAGE_COUNT|PGHDR_CHAPTER_MARKS|PGHDR_CLOCK);
doc->dom_doc = doc->text_view->getDocument();
doc->text_view->Render();