Added detection of single kobo models. Also a script to launch koreader is included and the related Makefile changes.

This commit is contained in:
Giorgio Micotti
2013-07-10 09:10:38 +02:00
parent c423c031b3
commit c91e3834bb
5 changed files with 55 additions and 8 deletions

View File

@@ -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)