2
0
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:
Benoit Pierre 2024-07-14 22:00:31 +02:00 committed by Frans de Jonge
parent a2343c8957
commit cb002f3d1f

View File

@ -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,