Ticket #11358: hdpvr-1088i.patch

File hdpvr-1088i.patch, 1.5 KB (added by Jim Stichnoth, 7 years ago)

Test patch applies to master and fixes/0.26

  • mythtv/libs/libmythtv/videooutwindow.cpp

    diff --git a/mythtv/libs/libmythtv/videooutwindow.cpp b/mythtv/libs/libmythtv/videooutwindow.cpp
    index ca7867e..0aef2e2 100644
    a b void VideoOutWindow::MoveResize(void) 
    140140    }
    141141
    142142    // Apply various modifications
     143    Apply1080Fixup();
    143144    ApplyDBScaleAndMove();
    144145    ApplyLetterboxing();
    145146    ApplyManualScaleAndMove();
    void VideoOutWindow::MoveResize(void) 
    152153    needrepaint = true;
    153154}
    154155
     156/** \fn VideoOutWindow::Apply1080Fixup(void)
     157
     158 *  \brief If the video is reported as 1088 lines, apply a vertical
     159 *  scaling operation to bring it effectively to 1080 lines.
     160 */
     161void VideoOutWindow::Apply1080Fixup(void)
     162{
     163    if (video_dim.height() == 1088)
     164    {
     165        int height = display_video_rect.height();
     166        display_video_rect.setHeight(height * 1088.0 / 1080 + 0.5);
     167    }
     168}
     169
    155170/** \fn VideoOutWindow::ApplyDBScaleAndMove(void)
    156171 *  \brief Apply scales and moves for "Overscan" and "Underscan" DB settings.
    157172 *
  • mythtv/libs/libmythtv/videooutwindow.h

    diff --git a/mythtv/libs/libmythtv/videooutwindow.h b/mythtv/libs/libmythtv/videooutwindow.h
    index 48c81db..25d5ad6 100644
    a b class VideoOutWindow 
    107107                     bool         do_pixel_adj = true) const;
    108108
    109109  protected:
     110    void Apply1080Fixup(void);
    110111    void ApplyDBScaleAndMove(void);
    111112    void ApplyManualScaleAndMove(void);
    112113    void ApplyLetterboxing(void);