Try to use reagl on the PW2...

That doesn't seem to work as nicely as the stock reader... :/
pull/704/head
NiLuJe 10 years ago
parent 603dd3bd05
commit 64566e0f3a

@ -19,6 +19,9 @@ local WAVEFORM_MODE_GC16_FAST = 0x3 -- Medium fidelity
local WAVEFORM_MODE_A2 = 0x4 -- Faster but even lower fidelity
local WAVEFORM_MODE_GL16 = 0x5 -- High fidelity from white transition
local WAVEFORM_MODE_GL16_FAST = 0x6 -- Medium fidelity from white transition
local WAVEFORM_MODE_DU4 = 0x7 -- Medium fidelity 4 level of gray direct update
local WAVEFORM_MODE_REAGL = 0x8 -- Ghost compensation waveform
local WAVEFORM_MODE_REAGLD = 0x9 -- Ghost compensation waveform with dithering
local WAVEFORM_MODE_AUTO = 0x101
-- there is only one instance of this
@ -358,12 +361,18 @@ function UIManager:run()
-- NOTE: For ref, on a Touch (debugPaint is my new best friend):
-- UI: gc16_fast
-- Reader: When flash: if to/from img: gc16, else gc16_fast; when non-flash: auto (seems to prefer gl16_fast); Waiting for marker only on flash
-- On a PW2:
-- Same as Touch, except reader uses reagl on non-flash, non-flash lasts longer; Always waits for marker
if refresh_type == 1 then
-- We don't really have an easy way to know if we're refreshing the UI, or a page, or if said page contains an image, so go with the best q.
waveform_mode = WAVEFORM_MODE_GC16
else
-- We spend much more time in the reader than the UI, and our UI isn't very graphic anyway, so go with the reader behavior
waveform_mode = WAVEFORM_MODE_GL16_FAST
if Device:getModel() == "KindlePaperWhite2" then
waveform_mode = WAVEFORM_MODE_REAGL
else
waveform_mode = WAVEFORM_MODE_GL16_FAST
end
end
end
if force_fast_refresh then

Loading…
Cancel
Save