mirror of
https://github.com/koreader/koreader.git
synced 2025-08-10 00:52:38 +00:00
fix fractional pix returned by scaleByDPI
This commit is contained in:
@@ -131,7 +131,7 @@ function Screen:getDPI()
|
||||
end
|
||||
|
||||
function Screen:scaleByDPI(px)
|
||||
return (px * self:getDPI()/167)
|
||||
return math.floor(px * self:getDPI()/167)
|
||||
end
|
||||
|
||||
-- make a shortcut to Screen:scaleByDPI
|
||||
|
||||
Reference in New Issue
Block a user