Merge pull request #2390 from sorganov/master

Make koreader more useful on high-DPI screen (PW3 300dpi)
pull/2402/head
Frans de Jonge 8 years ago committed by GitHub
commit e9b6fa746f

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

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

Loading…
Cancel
Save