Allow for colored rendering (#3276)

* Allow for colored rendering

Available with all engines (CRE, PDF, Images).
Needs to manually add setting: "color_rendering" = true

* Disable color for djvudocument

* Use Screen:isColorEnabled()

* Bump base
This commit is contained in:
poire-z
2017-10-01 00:16:38 +02:00
committed by Frans de Jonge
parent a2ea46bfdc
commit 180f5755f4
7 changed files with 35 additions and 11 deletions

View File

@@ -1,6 +1,6 @@
local KoptOptions = require("ui/data/koptoptions")
local Document = require("document/document")
local DrawContext = require("ffi/drawcontext")
local KoptOptions = require("ui/data/koptoptions")
local DjvuDocument = Document:new{
_document = false,
@@ -10,6 +10,7 @@ local DjvuDocument = Document:new{
dc_null = DrawContext.new(),
options = KoptOptions,
koptinterface = nil,
is_color_capable = false,
}
-- check DjVu magic string to validate