mirror of
https://github.com/koreader/koreader.git
synced 2025-08-10 00:52:38 +00:00
separate setting paint_white for libk2pdfopt
This commit is contained in:
2
base
2
base
Submodule base updated: b4e76037fa...be7bbd1f69
@@ -153,6 +153,7 @@ function KoptInterface:createContext(doc, pageno, bbox)
|
||||
kc:setContrast(1 / doc.configurable.contrast)
|
||||
if doc.configurable.white_threshold ~= 255 then
|
||||
kc:setWhite(doc.configurable.white_threshold)
|
||||
kc:setPaintWhite(1)
|
||||
end
|
||||
kc:setDefectSize(doc.configurable.defect_size)
|
||||
kc:setLineSpacing(doc.configurable.line_spacing)
|
||||
|
||||
Reference in New Issue
Block a user