save and restore gamma_index for crengine

This commit is contained in:
Qingping Hou
2013-01-13 11:49:01 +08:00
parent 5abf3cb92d
commit 874890aaec
2 changed files with 12 additions and 2 deletions

View File

@@ -277,6 +277,10 @@ function CreDocument:toggleFontBolder()
self._document:toggleFontBolder()
end
function CreDocument:setGammaIndex(index)
cre.setGammaIndex(index)
end
DocumentRegistry:addProvider("txt", "application/txt", CreDocument)
DocumentRegistry:addProvider("epub", "application/epub", CreDocument)
DocumentRegistry:addProvider("html", "application/html", CreDocument)