You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
-- only for Amazon's driver, try to mostly follow what the stock reader does...
365
-
ifwaveform_mode==C.WAVEFORM_MODE_KOA2_GLR16then
366
-
-- If we're requesting WAVEFORM_MODE_KOA2_GLR16, it's REAGL all around!
365
+
ifwaveform_mode==C.WAVEFORM_MODE_ZELDA_GLR16then
366
+
-- If we're requesting WAVEFORM_MODE_ZELDA_GLR16, it's REAGL all around!
367
367
refarea[0].hist_bw_waveform_mode=waveform_mode
368
368
refarea[0].hist_gray_waveform_mode=waveform_mode
369
369
else
@@ -518,8 +518,8 @@ function framebuffer:init()
518
518
-- New devices are REAGL-aware, default to REAGL
519
519
localisREAGL=true
520
520
521
-
--The KOA2 uses a new eink driver, one that massively breaks backward compatibility.
522
-
localisKOA2=false
521
+
--Zelda uses a new eink driver, one that massively breaks backward compatibility.
522
+
localisZelda=false
523
523
-- And because that worked well enough the first time, lab126 did the same with Rex!
524
524
localisRex=false
525
525
-- But of course, some devices don't actually support all the features the kernel exposes...
@@ -540,7 +540,7 @@ function framebuffer:init()
540
540
end
541
541
542
542
ifself.device.model=="KindleOasis2" then
543
-
isKOA2=true
543
+
isZelda=true
544
544
end
545
545
546
546
ifself.device.model=="KindlePaperWhite4" then
@@ -565,33 +565,33 @@ function framebuffer:init()
565
565
self.waveform_partial=C.WAVEFORM_MODE_GL16_FAST-- NOTE: Depending on FW, might instead be AUTO w/ hist_gray_waveform_mode set to GL16_FAST
566
566
end
567
567
568
-
-- NOTE: Devices on the Rex platform essentially use the same driver as the KOA2, they're just passing a slightly smaller mxcfb_update_data struct
569
-
ifisKOA2orisRexthen
568
+
-- NOTE: Devices on the Rex platform essentially use the same driver as the Zelda platform, they're just passing a slightly smaller mxcfb_update_data struct
569
+
ifisZeldaorisRexthen
570
570
-- FIXME: Someone with the device will have to check if/how HW dithering is supposed to be requested,
571
571
-- as the Kobo Mk.7 way doesn't appear to work, at the very least on the PW4 (c.f., #4602)
572
572
--self.device.canHWDither = yes
573
-
ifisKOA2then
574
-
self.mech_refresh=refresh_koa2
573
+
ifisZeldathen
574
+
self.mech_refresh=refresh_zelda
575
575
else
576
576
self.mech_refresh=refresh_rex
577
577
end
578
578
579
579
self.waveform_fast=C.WAVEFORM_MODE_DU
580
580
self.waveform_ui=C.WAVEFORM_MODE_AUTO
581
581
-- NOTE: Possibly to bypass the possibility that AUTO, even when FULL, might not flash (something which holds true for a number of devices, especially on small regions),
582
-
--The KOA2 explicitly requests GC16 when flashing an UI element that doesn't cover the full screen...
582
+
--Zelda explicitly requests GC16 when flashing an UI element that doesn't cover the full screen...
583
583
-- And it resorts to AUTO when PARTIAL, because GC16_FAST is no more (it points to GC16).
584
584
self.waveform_flashui=C.WAVEFORM_MODE_GC16
585
-
self.waveform_reagl=C.WAVEFORM_MODE_KOA2_GLR16
585
+
self.waveform_reagl=C.WAVEFORM_MODE_ZELDA_GLR16
586
586
self.waveform_partial=self.waveform_reagl
587
587
-- NOTE: Because we can't have nice things, we have to account for devices that do not actuallly support the fancy inverted waveforms...
588
588
ifisNightModeChallengedthen
589
-
self.waveform_night=C.WAVEFORM_MODE_KOA2_GL16_INV-- NOTE: Currently points to the bog-standard GL16, but one can hope...
589
+
self.waveform_night=C.WAVEFORM_MODE_ZELDA_GL16_INV-- NOTE: Currently points to the bog-standard GL16, but one can hope...
0 commit comments