Lines Matching refs:x2
262 int16_t x2 = mask.GetRight();
265 if (x2 != rectBefore.GetRight()) {
266 UpdateWindowRegion(window, {static_cast<int16_t>(x2 + 1), y1, rectBefore.GetRight(),
270 UpdateWindowRegion(window, {x1, static_cast<int16_t>(y2 + 1), x2, rectBefore.GetBottom()});
415 void LiteWM::CalculateUpdateRegion(const ListNode<LiteWindow*>* winNode, int16_t x1, int16_t y1, int16_t x2, int16_t y2)
417 Rect rect(x1, y1, x2, y2);
436 CalculateUpdateRegion(winNode->prev_, mask.GetLeft(), y1, x2, mask.GetTop() - 1);
439 if (x2 != mask.GetRight()) {
440 CalculateUpdateRegion(winNode->prev_, mask.GetRight() + 1, mask.GetTop(), x2, y2);
449 CalculateUpdateRegion(winNode->prev_, x1, y1, x2, y2);
508 void LiteWM::DrawRegion(const ListNode<LiteWindow*>* winNode, int16_t x1, int16_t y1, int16_t x2, int16_t y2)
515 DrawBackground(x1, y1, x2, y2);
525 Rect rect(x1, y1, x2, y2);
531 DrawRegion(winNode->next_, x1, y1, x2, y2);
553 DrawRegion(winNode->next_, mask.GetLeft(), y1, x2, mask.GetTop() - 1);
556 if (x2 != mask.GetRight()) {
557 DrawRegion(winNode->next_, mask.GetRight() + 1, mask.GetTop(), x2, y2);
565 void LiteWM::DrawBackground(int16_t x1, int16_t y1, int16_t x2, int16_t y2)
568 Rect rectBg(x1, y1, x2, y2);
574 x2 = rect.GetRight();
578 GRAPHIC_LOGD("DrawBackground, {%d,%d,%d,%d}", x1, y1, x2, y2);
579 int32_t len = static_cast<int32_t>(x2 - x1 + 1) * layerData_->bytePerPixel;
596 int16_t x2 = rect.GetRight();
605 for (int16_t x = x1; x <= x2; x++) {