mirror of
https://github.com/koreader/koreader.git
synced 2025-08-10 00:52:38 +00:00
Merge branch 'master' into epub
This commit is contained in:
@@ -289,7 +289,7 @@ function UniReader:drawOrCache(no, preCache)
|
||||
tile.y = 0
|
||||
tile.w = self.fullwidth
|
||||
tile.h = self.fullheight
|
||||
elseif (tile.w*tile.h / 2) > max_cache then
|
||||
elseif (tile.w*tile.h / 2) < max_cache then
|
||||
-- no, we can't. so generate a tile as big as we can go
|
||||
-- grow area in steps of 10px
|
||||
while ((tile.w+10) * (tile.h+10) / 2) < max_cache do
|
||||
@@ -304,7 +304,7 @@ function UniReader:drawOrCache(no, preCache)
|
||||
tile.y = tile.y - 5
|
||||
tile.h = tile.h + 5
|
||||
end
|
||||
if tile.y + tile.h < self.fullheigth then
|
||||
if tile.y + tile.h < self.fullheight then
|
||||
tile.h = tile.h + 5
|
||||
end
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user