Ticket #13400: 20190306-video-aspect.patch

File 20190306-video-aspect.patch, 638 bytes (added by Klaas de Waal, 11 months ago)

Functionally the same as the 20190206 patch but looks better.

  • mythtv/libs/libmythtv/videooutbase.cpp

    diff --git a/mythtv/libs/libmythtv/videooutbase.cpp b/mythtv/libs/libmythtv/videooutbase.cpp
    index 1aaf2a9038..8e5753f9f9 100644
    a b void VideoOutput::InitDisplayMeasurements(uint width, uint height, bool resize) 
    19121912        ResizeForVideo(width, height);
    19131913
    19141914    // Determine window and screen dimensions in pixels
    1915     QSize screen_size = window.GetScreenGeometry().size();
     1915    QSize screen_size = disp.m_res;
    19161916    QSize window_size = window.GetDisplayVisibleRect().size();
    19171917
    19181918    float pixel_aspect = (float)screen_size.width() /