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

@@ -105,7 +105,7 @@ end
-- calculates page dimensions
function Document:getPageDimensions(pageno, zoom, rotation)
local native_dimen = Geom:copy(self:getNativePageDimensions(pageno))
local native_dimen = self:getNativePageDimensions(pageno):copy()
if rotation == 90 or rotation == 270 then
-- switch orientation
native_dimen.w, native_dimen.h = native_dimen.h, native_dimen.w