mirror of
https://github.com/koreader/koreader.git
synced 2025-08-10 00:52:38 +00:00
[feat, Kobo] On Kobo, drop fb to 8bpp on startup (#4637)
* The Great 8bpp Experiment Swap to 8bpp on Kobo, because we're 'effing grayscale, for pete's sake! * Always swap to 8bpp, no matter the launch method. Because it turned out that, even when restarting Nickel, we had to restore the expected bitdepth ourselves, because pickel/Nickel didn't do the job completely. (I'm going to guess the grayscale flag wasn't getting flipped properly). * Dither every non-transparent icon to the eInk palette * Make sure hasBGRFrameBuffer is only enabled when the Kobo fb actually is @ 32bpp... * Re-process badly grayscaled icons * And re-grayscale that one w/ gamma correction so the squares show up better. * Allow the fbdepth switch to be disabled (in Developer settings). Also, allow setting debug mode that way. Also, forcibly disable verbose logging when disabling debug. * Update setting name to piggyback on the existing check in reader.lua * Update icons postprocessing info
This commit is contained in:
@@ -62,7 +62,8 @@ end
|
||||
-- should check DEBUG option in arg and turn on DEBUG before loading other
|
||||
-- modules, otherwise DEBUG in some modules may not be printed.
|
||||
local dbg = require("dbg")
|
||||
if G_reader_settings:readSetting("debug") then dbg:turnOn() end
|
||||
if G_reader_settings:isTrue("debug") then dbg:turnOn() end
|
||||
if G_reader_settings:isTrue("debug") and G_reader_settings:isTrue("debug_verbose") then dbg:setVerbose(true) end
|
||||
|
||||
local Profiler = nil
|
||||
local ARGV = arg
|
||||
|
||||
Reference in New Issue
Block a user