mirror of
https://github.com/koreader/koreader
synced 2024-11-10 01:10:34 +00:00
kopt: fix bad KoptInterface:renderPage
call
Fix `render_mode` argument: add missing `gamma` argument.
This commit is contained in:
parent
a2343c8957
commit
cb002f3d1f
@ -508,7 +508,7 @@ Draw cached tile pixels into target blitbuffer.
|
||||
Inherited from common document interface.
|
||||
--]]
|
||||
function KoptInterface:drawContextPage(doc, target, x, y, rect, pageno, zoom, rotation, render_mode)
|
||||
local tile = self:renderPage(doc, pageno, rect, zoom, rotation, render_mode)
|
||||
local tile = self:renderPage(doc, pageno, rect, zoom, rotation, 0, render_mode)
|
||||
target:blitFrom(tile.bb,
|
||||
x, y,
|
||||
rect.x - tile.excerpt.x,
|
||||
|
Loading…
Reference in New Issue
Block a user