make readerconfig independent of koptoptions

So that other readers could reuse readerconfig
This commit is contained in:
chrox
2013-01-06 13:53:36 +08:00
parent bac3ae568b
commit aa152a8a51
5 changed files with 172 additions and 168 deletions

View File

@@ -12,12 +12,13 @@ DjvuDocument = Document:new{
dc_null = DrawContext.new(),
screen_size = Screen:getSize(),
screen_dpi = Device:getModel() == "KindlePaperWhite" and 212 or 167,
options = KoptOptions,
configurable = Configurable,
koptinterface = KoptInterface,
}
function DjvuDocument:init()
self.configurable:loadDefaults()
self.configurable:loadDefaults(self.options)
if not validDjvuFile(self.file) then
self.error_message = "Not a valid DjVu file"
return