diff --git a/base b/base index 99a6bd1a0..3ad258c9a 160000 --- a/base +++ b/base @@ -1 +1 @@ -Subproject commit 99a6bd1a0b36f9ba2d3772bf7d5e34f899e95d74 +Subproject commit 3ad258c9ac9e597ba1c3fc90ff2985756af9acde diff --git a/frontend/apps/filemanager/filemanagermenu.lua b/frontend/apps/filemanager/filemanagermenu.lua index ba060d72e..5e3d8e162 100644 --- a/frontend/apps/filemanager/filemanagermenu.lua +++ b/frontend/apps/filemanager/filemanagermenu.lua @@ -629,6 +629,21 @@ To: end, }) end + if Device:isKobo() and Device:hasColorScreen() then + table.insert(self.menu_items.developer_options.sub_item_table, { + -- We default to a flag (G2) that slightly boosts saturation, + -- but it *is* a destructive process, so we want to allow disabling it. + -- @translators CFA is a technical term for the technology behind eInk's color panels. It stands for Color Film/Filter Array, leave the abbreviation alone ;). + text = _("Disable CFA post-processing"), + checked_func = function() + return G_reader_settings:isTrue("no_cfa_post_processing") + end, + callback = function() + G_reader_settings:flipNilOrFalse("no_cfa_post_processing") + UIManager:askForRestart() + end, + }) + end table.insert(self.menu_items.developer_options.sub_item_table, { text = _("Anti-alias rounded corners"), checked_func = function() diff --git a/frontend/device/kobo/device.lua b/frontend/device/kobo/device.lua index db19477f2..9cd1a518f 100644 --- a/frontend/device/kobo/device.lua +++ b/frontend/device/kobo/device.lua @@ -699,6 +699,7 @@ function Kobo:init() debug = logger.dbg, is_always_portrait = self.isAlwaysPortrait(), mxcfb_bypass_wait_for = mxcfb_bypass_wait_for, + no_cfa_post_processing = G_reader_settings:isTrue("no_cfa_post_processing"), } if self.screen.fb_bpp == 32 and not self:hasColorScreen() then -- Ensure we decode images properly, as our framebuffer is BGRA...