mirror of
https://github.com/koreader/koreader.git
synced 2025-08-10 00:52:38 +00:00
Chore: Review FrameContainer constructors for shared dimen objects
Nothing else seems problematic, this is mostly just cosmetic sanitization around Geom objects.
This commit is contained in:
@@ -35,7 +35,12 @@ local Geom = {
|
||||
}
|
||||
|
||||
function Geom:new(o)
|
||||
if not o then o = {} end
|
||||
if not o then
|
||||
o = {
|
||||
x = 0, y = 0,
|
||||
w = 0, h = 0,
|
||||
}
|
||||
end
|
||||
setmetatable(o, self)
|
||||
self.__index = self
|
||||
return o
|
||||
|
||||
Reference in New Issue
Block a user