mirror of
https://github.com/koreader/koreader.git
synced 2025-08-10 00:52:38 +00:00
bump crengine: count nb of images drawn & others (#4542)
Includes: - Update french hyphenation pattern - epub.css: update style for 'blockquote' - DrawBuf: count nb of images and surface drawn Adds Document:getDrawnImagesStatistics() to help deciding if refresh with (possibly costly) dithering should be used (on devices with HW dithering capabilities) with CreDocument: when a page contains enough images to benefit from it.
This commit is contained in:
@@ -186,13 +186,13 @@ describe("Readerrolling module", function()
|
||||
it("should show pages for different word gap", function()
|
||||
readerui.document:setSpaceCondensing(100)
|
||||
readerui:handleEvent(Event:new("ChangeScreenMode", "portrait"))
|
||||
assert.are.same(266, readerui.document:getPageCount())
|
||||
assert.are.same(249, readerui.document:getPageCount())
|
||||
readerui.document:setSpaceCondensing(75)
|
||||
readerui:handleEvent(Event:new("ChangeScreenMode", "portrait"))
|
||||
assert.are.same(261, readerui.document:getPageCount())
|
||||
assert.are.same(242, readerui.document:getPageCount())
|
||||
readerui.document:setSpaceCondensing(50)
|
||||
readerui:handleEvent(Event:new("ChangeScreenMode", "portrait"))
|
||||
assert.are.same(247, readerui.document:getPageCount())
|
||||
assert.are.same(233, readerui.document:getPageCount())
|
||||
end)
|
||||
end)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user