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:
@@ -323,7 +323,7 @@ function CreDocument:drawCurrentView(target, x, y, rect, pos)
|
||||
-- change has been made, to avoid having crengine redraw the exact
|
||||
-- same buffer.
|
||||
-- And it could only change when some other methods from here are called
|
||||
self._document:drawCurrentPage(self.buffer, self.render_color)
|
||||
self._drawn_images_count, self._drawn_images_surface_ratio = self._document:drawCurrentPage(self.buffer, self.render_color)
|
||||
target:blitFrom(self.buffer, x, y, 0, 0, rect.w, rect.h)
|
||||
end
|
||||
|
||||
|
||||
Reference in New Issue
Block a user