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:
HW
2012-06-10 17:36:19 +02:00
parent 33ec40f29a
commit ce5614ef6f
11 changed files with 178 additions and 118 deletions

View File

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