use screen for UI color control

This commit is contained in:
Qingping Hou
2019-02-17 23:20:42 -08:00
committed by Frans de Jonge
parent 4d8da96177
commit adb5d5a52c
4 changed files with 15 additions and 8 deletions

View File

@@ -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,