mirror of
https://github.com/koreader/koreader.git
synced 2025-08-10 00:52:38 +00:00
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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user