Ticket #2162: osd_overscan_fix.diff

File osd_overscan_fix.diff, 882 bytes (added by Janne <janne-mythtv@…>, 19 years ago)
  • libs/libmythtv/videooutbase.cpp

    old new QRect VideoOutput::GetVisibleOSDBounds(  
    529529        float xs = (db_scale_horiz > 0.0f) ? db_scale_horiz : 0.0f;
    530530        float ys = (db_scale_vert > 0.0f) ? db_scale_vert : 0.0f;
    531531        QPoint s((int)(v.width() * xs), (int)(v.height() * ys));
    532         tl += s*0.5f;
    533         br -= s*1.5f;
     532        tl += s;
     533        br -= s;
    534534    }
    535     QRect vb(tl, br);
     535    // qt is braindead: QRect(QPoint(0,0), QPoint(0,0)) has area 1.
     536    QRect vb(tl.x(), tl.y(), br.x()-tl.x(), br.y()-tl.y());
    536537
    537538    // The calculation is completely bogus if the video is not centered
    538539    // which happens in the EPG, where we don't actually care about the OSD.