Ticket #3134: recType.patch
File recType.patch, 1.3 KB (added by , 17 years ago) |
---|
-
mythtv/libs/libmyth/uitypes.cpp
657 657 QRect area = data->drawArea; 658 658 area.addCoords(breakin, breakin, -breakin, -breakin); 659 659 660 if (data->recType != 0) 661 { 662 QPixmap *recImg = &recImages[data->recType]; 663 dr->drawPixmap(area.right() - recImg->width(), 664 area.bottom() - recImg->height(), *recImg); 665 } 660 int recTypeOffset = 0; 666 661 667 662 if (data->arrow != 0) 668 663 { … … 676 671 if (data->arrow == 2 || data->arrow == 3) 677 672 { 678 673 arrowImg = &arrowImages[1]; 674 recTypeOffset = arrowImg->width(); 679 675 dr->drawPixmap(area.right() - arrowImg->width(), 680 676 area.top() + (area.height() / 2) - 681 677 (arrowImg->height() / 2), *arrowImg); 682 678 } 683 679 } 680 681 if (data->recType != 0) 682 { 683 QPixmap *recImg = &recImages[data->recType]; 684 dr->drawPixmap(area.right() - recImg->width() - recTypeOffset, 685 area.bottom() - recImg->height(), *recImg); 686 } 684 687 } 685 688 686 689 void UIGuideType::drawBox(QPainter *dr, UIGTCon *data, const QColor &color)