mirror of
https://github.com/koreader/koreader.git
synced 2025-08-10 00:52:38 +00:00
Added detection of single kobo models. Also a script to launch koreader is included and the related Makefile changes.
This commit is contained in:
@@ -96,7 +96,15 @@ function Screen:getHeight()
|
||||
end
|
||||
|
||||
function Screen:getDPI()
|
||||
return Device:getModel() == "KindlePaperWhite" and 212 or 167
|
||||
if(Device:getModel() == "KindlePaperWhite") or (Device:getModel() == "Kobo_kraken") then
|
||||
return 212
|
||||
elseif Device:getModel() == "Kobo_dragon" then
|
||||
return 265
|
||||
elseif Device:getModel() == "Kobo_pixie" then
|
||||
return 200
|
||||
else
|
||||
return 167
|
||||
end
|
||||
end
|
||||
|
||||
function Screen:scaleByDPI(px)
|
||||
|
||||
Reference in New Issue
Block a user