mirror of
https://github.com/koreader/koreader.git
synced 2025-08-10 00:52:38 +00:00
fixed non-initialization bug for dc->gamma
This commit is contained in:
@@ -159,12 +159,6 @@ function setzoom(cacheslot)
|
||||
if optarg["G"] then
|
||||
print("gamma correction: "..optarg["G"])
|
||||
cache[cacheslot].dc:setGamma(optarg["G"])
|
||||
else
|
||||
-- there's still a bug in the DC initialization in C code,
|
||||
-- so we disable gamma correction here explicitly
|
||||
-- (it should be disabled by default)
|
||||
-- TODO: correct bug in C API
|
||||
cache[cacheslot].dc:setGamma(-1.0)
|
||||
end
|
||||
end
|
||||
|
||||
|
||||
Reference in New Issue
Block a user