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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user