From e541a378a2ec6c0a0880bfb4c3db9b30e72e89a0 Mon Sep 17 00:00:00 2001 From: Tigran Aivazian Date: Sat, 6 Oct 2012 15:10:46 +0100 Subject: [PATCH] Flush the time/battery info to the right for PDF Do the same for PDF that I have done for DjVu, to be consistent. --- unireader.lua | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/unireader.lua b/unireader.lua index f1eaee61d..78407f863 100644 --- a/unireader.lua +++ b/unireader.lua @@ -2122,8 +2122,10 @@ function UniReader:_drawReadingInfo() renderUtf8Text(fb.bb, 10, 15+6, face, "M: ".. math.ceil( self.cache_current_memsize / 1024 ).."/"..math.ceil( self.cache_max_memsize / 1024 ).. - " "..math.ceil( self.doc:getCacheSize() / 1024 ).."/"..math.ceil( self.cache_document_size / 1024 ).."k "..os.date("%a %d %b %Y %T").." ["..BatteryLevel().."]", - true) + " "..math.ceil( self.doc:getCacheSize() / 1024 ).."/"..math.ceil( self.cache_document_size / 1024 ).."k", true) + local txt = os.date("%a %d %b %Y %T").." ["..BatteryLevel().."]" + local w = sizeUtf8Text(0, G_width, face, txt, true).x + renderUtf8Text(fb.bb, width - w - 10, 15+6, face, txt, true) -- display reading progress on bottom of page local ypos = height - 50