feat: saturation control (#15381)
This commit is contained in:
1 parent
bc0ef5a078
commit
06c9eea0d4
14 files changed
+97
-41
No files matched your search
@@ -716,6 +716,13 @@ function ReaderPaging:onUpdateScrollPageGamma(gamma)
|
||||
return true
|
||||
end
|
||||
|
||||
function ReaderPaging:onUpdateScrollPageSaturation(saturation)
|
||||
for _, state in ipairs(self.view.page_states) do
|
||||
state.saturation = saturation
|
||||
end
|
||||
return true
|
||||
end
|
||||
|
||||
function ReaderPaging:getNextPageState(blank_area, image_offset)
|
||||
local page_area = self.view:getPageArea(
|
||||
self.view.state.page,
|
||||
@@ -736,6 +743,7 @@ function ReaderPaging:getNextPageState(blank_area, image_offset)
|
||||
zoom = self.view.state.zoom,
|
||||
rotation = self.view.state.rotation,
|
||||
gamma = self.view.state.gamma,
|
||||
saturation = self.view.state.saturation,
|
||||
offset = page_offset,
|
||||
visible_area = visible_area,
|
||||
page_area = page_area,
|
||||
@@ -763,6 +771,7 @@ function ReaderPaging:getPrevPageState(blank_area, image_offset)
|
||||
zoom = self.view.state.zoom,
|
||||
rotation = self.view.state.rotation,
|
||||
gamma = self.view.state.gamma,
|
||||
saturation = self.view.state.saturation,
|
||||
offset = page_offset,
|
||||
visible_area = visible_area,
|
||||
page_area = page_area,
|
||||
|
||||
Reference in new issue
Block a user