mirror of
https://github.com/koreader/koreader.git
synced 2026-11-27 06:43:01 +00:00
Warn if color rendering is enabled on a grayscale device. (#5871)
* Make sure the Color menu is accessible on GrayScale device, in the event one would have inherited a color-enabled settings from another device... * Warn on startup if color rendering is enabled on a grayscale device. A non-exhaustive lists of things such a setup would break: * same-to-same blitbuffers for pretty much every rendering engine * same-to-same blitting codepaths and fast-paths * software dithering in CRe
This commit is contained in:
1 parent
687074fa1f
commit
aed27a5a16
3 files changed
+23
-2
No files matched your search
@@ -198,7 +198,8 @@ if Device:canToggleGSensor() then
|
||||
common_settings.screen_toggle_gsensor = require("ui/elements/screen_toggle_gsensor")
|
||||
end
|
||||
|
||||
if Screen.isColorScreen() then
|
||||
-- NOTE: Allow disabling color if it's mistakenly enabled on a Grayscale screen (after a settings import?)
|
||||
if Screen:isColorEnabled() or Screen:isColorScreen() then
|
||||
common_settings.color_rendering = require("ui/elements/screen_color_menu_table")
|
||||
end
|
||||
|
||||
|
||||
Reference in new issue
Block a user