Merge pull request #2390 from sorganov/master

Make koreader more useful on high-DPI screen (PW3 300dpi)
This commit is contained in:
Frans de Jonge
2016-12-01 16:57:32 +01:00
committed by GitHub
2 changed files with 4 additions and 2 deletions

View File

@@ -57,6 +57,8 @@ local function tidy_markup(results)
end
-- ignore all markup tags
def = def:gsub("%b<>", "")
-- strip all leading empty lines/spaces
def = def:gsub("^%s+", "")
result.definition = def
end
return results

View File

@@ -60,11 +60,11 @@ return {
hold_input = {
title = _("Input screen DPI"),
type = "number",
hint = "(90 - 330)",
hint = "(90 - 600)",
callback = function(input)
local _dpi = tonumber(input)
_dpi = _dpi < 90 and 90 or _dpi
_dpi = _dpi > 330 and 330 or _dpi
_dpi = _dpi > 600 and 600 or _dpi
G_reader_settings:saveSetting("custom_screen_dpi", _dpi)
setDPI(_dpi)
end,