Flush the time/battery info to the right for PDF

Do the same for PDF that I have done for DjVu, to be consistent.
This commit is contained in:
Tigran Aivazian
2012-10-06 15:10:46 +01:00
parent ca5be5c0e6
commit e541a378a2

View File

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