Ticket #9674: 9674.2.patch

File 9674.2.patch, 1.4 KB (added by Jim Stichnoth <stichnot@…>, 13 years ago)
  • mythtv/libs/libmythui/mythuieditbar.cpp

    diff --git a/mythtv/libs/libmythui/mythuieditbar.cpp b/mythtv/libs/libmythui/mythuieditbar.cpp
    index 5af0ebf..73bc6cb 100644
    a b void MythUIEditBar::AddBar(MythUIShape *shape, MythUIImage *image, 
    188188        MythUIShape *shape = dynamic_cast<MythUIShape*>(add);
    189189        MythUIImage *image = dynamic_cast<MythUIImage*>(add);
    190190        if (shape)
    191             shape->SetCropRect(area.left(), 0, area.width(), area.height());
     191            shape->SetCropRect(area.left(), area.top(), area.width(), area.height());
    192192        if (image)
    193             image->SetCropRect(area.left(), 0, area.width(), area.height());
     193            image->SetCropRect(area.left(), area.top(), area.width(), area.height());
    194194        add->SetPosition(area.left(), area.top());
    195195    }
    196196}
  • mythtv/libs/libmythui/mythuishape.cpp

    diff --git a/mythtv/libs/libmythui/mythuishape.cpp b/mythtv/libs/libmythui/mythuishape.cpp
    index 673648c..ac8cb29 100644
    a b void MythUIShape::DrawSelf(MythPainter *p, int xoffset, int yoffset, 
    5656                          int alphaMod, QRect clipRect)
    5757{
    5858    QRect area = GetArea();
     59    m_cropRect.CalculateArea(area);
     60    if (!m_cropRect.isEmpty())
     61        area &= m_cropRect.toQRect();
    5962    area.translate(xoffset, yoffset);
    6063
    6164    if (m_type == "box")