mirror of
https://github.com/koreader/koreader
synced 2024-11-10 01:10:34 +00:00
update image dimen in paintTo method
This commit is contained in:
parent
4dd48b38df
commit
210e2fcef8
@ -29,6 +29,11 @@ end
|
||||
|
||||
function ImageWidget:paintTo(bb, x, y)
|
||||
local size = self:getSize()
|
||||
self.dimen = Geom:new{
|
||||
x = x, y = y,
|
||||
w = size.w,
|
||||
h = size.h
|
||||
}
|
||||
bb:blitFrom(self._bb, x, y, 0, 0, size.w, size.h)
|
||||
if self.invert then
|
||||
bb:invertRect(x, y, size.w, size.h)
|
||||
|
Loading…
Reference in New Issue
Block a user