mirror of
https://github.com/koreader/koreader.git
synced 2025-08-10 00:52:38 +00:00
Don't show SW dither toggle on devices w/ HW dithering
This commit is contained in:
@@ -497,7 +497,8 @@ function Document:drawPage(target, x, y, rect, pageno, zoom, rotation, gamma, re
|
||||
local tile = self:renderPage(pageno, rect, zoom, rotation, gamma, render_mode)
|
||||
-- Enable SW dithering if requested (only available in koptoptions)
|
||||
-- Much Like ReaderView, also enforce SW dithering in PicDocument if the device can't do HW dithering...
|
||||
if (self.is_pic and CanvasContext:hasEinkScreen() and not CanvasContext:canHWDither() and CanvasContext.fb_bpp == 8) or (self.configurable.sw_dithering and self.configurable.sw_dithering == 1) then
|
||||
if (self.is_pic and CanvasContext:hasEinkScreen() and not CanvasContext:canHWDither() and CanvasContext.fb_bpp == 8)
|
||||
or (self.configurable.sw_dithering and self.configurable.sw_dithering == 1) then
|
||||
target:ditherblitFrom(tile.bb,
|
||||
x, y,
|
||||
rect.x - tile.excerpt.x,
|
||||
|
||||
Reference in New Issue
Block a user