Ticket #3134: recType.patch

File recType.patch, 1.3 KB (added by anonymous, 17 years ago)
  • mythtv/libs/libmyth/uitypes.cpp

     
    657657    QRect area = data->drawArea;
    658658    area.addCoords(breakin, breakin, -breakin, -breakin);
    659659
    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;
    666661
    667662    if (data->arrow != 0)
    668663    {
     
    676671        if (data->arrow == 2 || data->arrow == 3)
    677672        {
    678673            arrowImg = &arrowImages[1];
     674            recTypeOffset = arrowImg->width();
    679675            dr->drawPixmap(area.right() - arrowImg->width(),
    680676                           area.top() + (area.height() / 2) -
    681677                           (arrowImg->height() / 2), *arrowImg);
    682678        }
    683679    }
     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    }
    684687}
    685688
    686689void UIGuideType::drawBox(QPainter *dr, UIGTCon *data, const QColor &color)