From 210e2fcef8f32a22c785eebc2a4e8a1213e5fd32 Mon Sep 17 00:00:00 2001 From: chrox Date: Tue, 23 Jul 2013 16:47:39 +0800 Subject: [PATCH] update image dimen in paintTo method --- frontend/ui/widget/image.lua | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/frontend/ui/widget/image.lua b/frontend/ui/widget/image.lua index bf008cab8..fc78d664f 100644 --- a/frontend/ui/widget/image.lua +++ b/frontend/ui/widget/image.lua @@ -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)