mirror of
https://github.com/koreader/koreader.git
synced 2025-08-10 00:52:38 +00:00
@@ -158,7 +158,7 @@ function Device:hasFrontlight()
|
||||
if self.has_front_light ~= nil then return self.has_front_light end
|
||||
local model = self:getModel()
|
||||
self.has_front_light = (model == "KindlePaperWhite") or (model == "KindlePaperWhite2")
|
||||
or (model == "Kobo_dragon") or (model == "Kobo_kraken") or (model == "Kobo_phoenix")
|
||||
or (model == "Kobo_dahlia") or (model == "Kobo_dragon") or (model == "Kobo_kraken") or (model == "Kobo_phoenix")
|
||||
or util.isEmulated()
|
||||
return self.has_front_light
|
||||
end
|
||||
|
||||
@@ -148,7 +148,7 @@ function Screen:getDPI()
|
||||
self.dpi = 212
|
||||
elseif model == "Kobo_phoenix" then
|
||||
self.dpi = 212.8
|
||||
elseif model == "Kobo_dragon" then
|
||||
elseif model == "Kobo_dragon" or model == "Kobo_dahlia" then
|
||||
self.dpi = 265
|
||||
elseif model == "Kobo_pixie" then
|
||||
self.dpi = 200
|
||||
|
||||
@@ -472,7 +472,7 @@ function Input:init()
|
||||
end
|
||||
end
|
||||
|
||||
if Device:getModel() ~= 'Kobo_phoenix' then
|
||||
if Device:getModel() ~= 'Kobo_phoenix' and Device:getModel() ~= 'Kobo_dahlia' then
|
||||
function Input:handleTouchEv(ev)
|
||||
return Input:handleTypeBTouchEv(ev)
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user