Ticket #2162: osd_overscan_fix.diff
File osd_overscan_fix.diff, 882 bytes (added by , 19 years ago) |
---|
-
libs/libmythtv/videooutbase.cpp
old new QRect VideoOutput::GetVisibleOSDBounds( 529 529 float xs = (db_scale_horiz > 0.0f) ? db_scale_horiz : 0.0f; 530 530 float ys = (db_scale_vert > 0.0f) ? db_scale_vert : 0.0f; 531 531 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; 534 534 } 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()); 536 537 537 538 // The calculation is completely bogus if the video is not centered 538 539 // which happens in the EPG, where we don't actually care about the OSD.