From 712fd7a11981fe608af3d67fcb9ed8b60fc8456d Mon Sep 17 00:00:00 2001 From: jsjzju Date: Tue, 30 Mar 2021 21:17:07 +0800 Subject: [PATCH] IssueNo:#I3EARI Description: Fix bug in width and height calculation of imgRect Sig:graphic Feture or Bufix:Bugfix Binary Source:No Change-Id: I66c1dfe355438b66370118db21a243b6ebc8666f --- frameworks/components/ui_analog_clock.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/frameworks/components/ui_analog_clock.cpp b/frameworks/components/ui_analog_clock.cpp index 6fde325..9a8b42f 100755 --- a/frameworks/components/ui_analog_clock.cpp +++ b/frameworks/components/ui_analog_clock.cpp @@ -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 pivot; -- GitLab