提交 712fd7a1 编写于 作者: J jsjzju

IssueNo:#I3EARI

Description: Fix bug in width and height calculation of imgRect
Sig:graphic
Feture or Bufix:Bugfix
Binary Source:No

Change-Id: I66c1dfe355438b66370118db21a243b6ebc8666f
上级 68f6f063
......@@ -243,9 +243,9 @@ void UIAnalogClock::CalculateRedrawArea(const Rect& current, Hand& hand, bool cl
int16_t imgHeight = hand.imageInfo_.header.height;
int16_t left = hand.position_.x + current.GetLeft();
int16_t right = left + imgWidth;
int16_t right = left + imgWidth - 1;
int16_t top = hand.position_.y + current.GetTop();
int16_t bottom = top + imgHeight;
int16_t bottom = top + imgHeight - 1;
Rect imgRect(left, top, right, bottom);
TransformMap backwardMap(imgRect);
Vector2<float> pivot;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册