mirror of
https://github.com/koreader/koreader.git
synced 2025-08-10 00:52:38 +00:00
cleanup, also removal of G_* constants
a bit of cleanup, switched width/height combo over to use Geom() objects, moved framebuffer handling to Screen object, callback syntax sanitizing, lots of small changes
This commit is contained in:
@@ -55,7 +55,7 @@ function CreDocument:init()
|
||||
local style_sheet = "./data/"..file_type..".css"
|
||||
|
||||
ok, self._document = pcall(cre.openDocument, self.file, style_sheet,
|
||||
G_width, G_height)
|
||||
Screen:getWidth(), Screen:getHeight())
|
||||
if not ok then
|
||||
self.error_message = self.doc -- will contain error message
|
||||
return
|
||||
|
||||
Reference in New Issue
Block a user