Skip to content

Commit

Permalink
framebuffer: Special-case the Oasis & KT3, too.
Browse files Browse the repository at this point in the history
Carta screens, nothing unusual, AFAIK :).
  • Loading branch information
NiLuJe committed Jul 9, 2016
1 parent d8528c9 commit 1a8cab8
Showing 1 changed file with 16 additions and 0 deletions.
16 changes: 16 additions & 0 deletions ffi/framebuffer_mxcfb.lua
Original file line number Diff line number Diff line change
Expand Up @@ -351,6 +351,22 @@ function framebuffer:init()
self.wait_for_marker_partial = true
self.wait_for_marker_fast = true
self.wait_for_marker_ui = false
elseif self.device.model == "KindleOasis" then
self.mech_wait_update_complete = kindle_carta_mxc_wait_for_update_complete
self.waveform_partial = ffi.C.WAVEFORM_MODE_REAGL
self.update_mode_partial = ffi.C.UPDATE_MODE_FULL -- REAGL get upgraded to full
self.wait_for_marker_full = true
self.wait_for_marker_partial = true
self.wait_for_marker_fast = true
self.wait_for_marker_ui = false
elseif self.device.model == "KindleBasic2" then
self.mech_wait_update_complete = kindle_carta_mxc_wait_for_update_complete
self.waveform_partial = ffi.C.WAVEFORM_MODE_REAGL
self.update_mode_partial = ffi.C.UPDATE_MODE_FULL -- REAGL get upgraded to full
self.wait_for_marker_full = true
self.wait_for_marker_partial = true
self.wait_for_marker_fast = true
self.wait_for_marker_ui = false
end
elseif self.device:isKobo() then
require("ffi/mxcfb_kobo_h")
Expand Down

0 comments on commit 1a8cab8

Please sign in to comment.