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 committed 2013-07-10 09:10:38 +02:00
1 parent c423c031b3
commit c91e3834bb
5 files changed
+55 -8

No files matched your search

+9 -1
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)