diff --git a/settings.lua b/settings.lua index 286803d8b..3b38c3b25 100644 --- a/settings.lua +++ b/settings.lua @@ -100,6 +100,7 @@ function Debug(...) end end print("#"..line) + return true -- debug enabled end -- simple serialization function, won't do uservalues, functions, loops diff --git a/unireader.lua b/unireader.lua index 0cd17a951..a40d6edf6 100644 --- a/unireader.lua +++ b/unireader.lua @@ -1048,10 +1048,11 @@ function UniReader:drawOrCache(no, preCache) -- #4 goal: we render next page, too. (TODO) local pg_w = G_width / ( self.doc:getPages() ) - local page_indicator = function() - fb.bb:invertRect( pg_w*(no-1),0, pg_w,10) - fb:refresh(1, pg_w*(no-1),0, pg_w,10) - Debug('page_indicator',no) + local page_indicator = function() + if Debug('page_indicator',no) then + fb.bb:invertRect( pg_w*(no-1),0, pg_w,10) + fb:refresh(1, pg_w*(no-1),0, pg_w,10) + end end page_indicator()