mirror of
https://github.com/koreader/koreader.git
synced 2025-08-10 00:52:38 +00:00
[PB] Fix WAIT_FOR_UPDATE_COMPLETE ioctl (#6669)
* Fix WAIT_FOR_COMPLETE ioctl (fix #6000) * Prevent a promotion to a flashing on fg/bg toggle * Bump base for the matching PB updates (https://github.com/koreader/koreader-base/pull/1188)
This commit is contained in:
2
base
2
base
Submodule base updated: 50a965c28f...7c380d0590
@@ -36,13 +36,15 @@ local PocketBook = Generic:new{
|
||||
|
||||
-- all devices that have warmth lights use inkview api
|
||||
hasNaturalLightApi = yes,
|
||||
|
||||
-- Apparently, HW inversion is a pipedream on PB (#6669)
|
||||
canHWInvert = no,
|
||||
}
|
||||
|
||||
-- Make sure the C BB cannot be used on devices with a 24bpp fb
|
||||
function PocketBook:blacklistCBB()
|
||||
-- As well as on those than can't do HW inversion, as otherwise NightMode would be ineffective.
|
||||
--- @fixme Either relax the HWInvert check, or actually enable HWInvert on PB if it's safe and it works,
|
||||
-- as, currently, no PB device is marked as canHWInvert, so, the C BB is essentially *always* blacklisted.
|
||||
--- @note: Since HWInvert is a no-go on PB, the C BB is essentially *always* blacklisted.
|
||||
if not self:canUseCBB() or not self:canHWInvert() then
|
||||
logger.info("Blacklisting the C BB on this device")
|
||||
if ffi.os == "Windows" then
|
||||
@@ -104,7 +106,7 @@ function PocketBook:init()
|
||||
end
|
||||
elseif ev.code == C.EVT_FOREGROUND or ev.code == C.EVT_SHOW then
|
||||
tryOpenBook()
|
||||
ui:setDirty('all', 'partial')
|
||||
ui:setDirty('all', 'ui')
|
||||
if quasiSuspended then
|
||||
quasiSuspended = false
|
||||
return "Resume"
|
||||
|
||||
Reference in New Issue
Block a user