2
0
mirror of https://github.com/koreader/koreader synced 2024-10-31 21:20:20 +00:00

Use the local copy of the global G_width variable.

This commit is contained in:
Tigran Aivazian 2012-10-10 13:55:38 +01:00
parent a68407a770
commit ba84bb56d3

View File

@ -22,7 +22,7 @@ function PICViewer:_drawReadingInfo()
math.ceil( self.cache_current_memsize / 1024 ).."/"..math.ceil( self.cache_max_memsize / 1024 ).."k, "..
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
local w = sizeUtf8Text(0, width, face, txt, true).x
renderUtf8Text(fb.bb, width - w - 10, 15+6, face, txt, true)
renderUtf8Text(fb.bb, 10, 15+6+22, face,
"Gm:"..string.format("%.1f",self.globalgamma)..", "..