From fb073c4d63b1920a5ac2a817df4c4b21e2bbfe76 Mon Sep 17 00:00:00 2001 From: chrox Date: Wed, 21 Oct 2015 22:51:15 +0800 Subject: [PATCH 1/2] fix kobo touch probe The KOBO_TOUCH_MIRRORED is only used when init input device, after the initialization setting it will have no effect on the event adjust hook. --- utils/kobo_touch_probe.lua | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/utils/kobo_touch_probe.lua b/utils/kobo_touch_probe.lua index 1671ba69e..302e05825 100755 --- a/utils/kobo_touch_probe.lua +++ b/utils/kobo_touch_probe.lua @@ -91,7 +91,7 @@ if KOBO_TOUCH_MIRRORED == nil then UIManager:show(TouchProbe:new{}) UIManager:run() -- otherwise, we will use probed result - else - KOBO_TOUCH_MIRRORED = switch_xy + elseif switch_xy then + Input:registerEventAdjustHook(Input.adjustTouchSwitchXY) end end From 42d139ce077a7ce77954de04790ebffe4ce973b6 Mon Sep 17 00:00:00 2001 From: chrox Date: Wed, 21 Oct 2015 23:04:46 +0800 Subject: [PATCH 2/2] enlarge maximum cache size to reflect hardware development in the last 4 years Actually I'm not sure if the hardware manufacturers double their RAM in the last 4 years. Moore's law? Are you kidding me? This should close #1672. --- defaults.lua | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/defaults.lua b/defaults.lua index f608898ed..f06ca850d 100644 --- a/defaults.lua +++ b/defaults.lua @@ -26,10 +26,10 @@ DRENDER_MODE = 0 -- 0 is COLOUR DGLOBAL_CACHE_SIZE_MINIMUM = 1024*1024*10 -- proportion of system free memory used as global cache -DGLOBAL_CACHE_FREE_PROPORTION = 0.2 +DGLOBAL_CACHE_FREE_PROPORTION = 0.4 -- maximum cache size -DGLOBAL_CACHE_SIZE_MAXIMUM = 1024*1024*30 +DGLOBAL_CACHE_SIZE_MAXIMUM = 1024*1024*60 -- background colour in non scroll mode: 8 = gray, 0 = white, 15 = black DBACKGROUND_COLOR = 0