mirror of
https://github.com/koreader/koreader.git
synced 2025-08-10 00:52:38 +00:00
Kobo: Boost saturation for CFA refreshes (and add a dev setting to disable it) (#11883)
Being able to disable it can be interesting, because it *is* a somewhat destructive process. * Requires a base bump: https://github.com/koreader/koreader-base/pull/1793 https://github.com/koreader/koreader-base/pull/1794
This commit is contained in:
2
base
2
base
Submodule base updated: 99a6bd1a0b...3ad258c9ac
@@ -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()
|
||||
|
||||
@@ -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...
|
||||
|
||||
Reference in New Issue
Block a user