2
0
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:
chrox 2013-07-23 16:47:39 +08:00
parent 4dd48b38df
commit 210e2fcef8

View File

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