mirror of
https://github.com/koreader/koreader.git
synced 2025-08-10 00:52:38 +00:00
use screen for UI color control
This commit is contained in:
committed by
Frans de Jonge
parent
4d8da96177
commit
adb5d5a52c
@@ -361,11 +361,11 @@ function TextBoxWidget:_renderText(start_row_idx, end_row_idx)
|
||||
if self._bb then self._bb:free() end
|
||||
local bbtype = nil
|
||||
if self.line_num_to_image and self.line_num_to_image[start_row_idx] then
|
||||
-- Whether Runtimectl.is_color_rendering_enabled or not, it's best to
|
||||
-- Whether Screen:isColorEnabled or not, it's best to
|
||||
-- always use BBRGB32 and alphablitFrom() for the best display of
|
||||
-- various images:
|
||||
-- With greyscale screen TYPE_BB8 (the default, and
|
||||
-- what we would have chosen when not Runtimectl.is_color_rendering_enabled):
|
||||
-- what we would have chosen when not Screen:isColorEnabled):
|
||||
-- alphablitFrom: some images are all white (ex: flags on Milan,
|
||||
-- Ilkhanides on wiki.fr)
|
||||
-- blitFrom: some images have a black background (ex: RDA,
|
||||
|
||||
Reference in New Issue
Block a user