mirror of
https://github.com/koreader/koreader.git
synced 2025-08-10 00:52:38 +00:00
Merge pull request #2390 from sorganov/master
Make koreader more useful on high-DPI screen (PW3 300dpi)
This commit is contained in:
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user