Ticket #13054: 20170906_test_displayres.patch

File 20170906_test_displayres.patch, 745 bytes (added by Peter Bennett, 4 years ago)

Patch to test a possible solution by forcing fullscreen

  • mythtv/libs/libmythui/DisplayRes.cpp

    diff --git a/mythtv/libs/libmythui/DisplayRes.cpp b/mythtv/libs/libmythui/DisplayRes.cpp
    index 01e69ca..a62c901 100644
    a b  
    33#include "config.h"
    44#include "mythlogging.h"
    55#include "mythdb.h"
     6#include "mythmainwindow.h"
    67
    78#ifdef USING_XRANDR
    89#include "DisplayResX.h"
    bool DisplayRes::SwitchToVideo(int iwidth, int iheight, double frate) 
    175176    m_last = next;
    176177    m_last.SetRefreshRate(target_rate);
    177178
     179    GetMythMainWindow()->setWindowState(Qt::WindowFullScreen);
     180
    178181    LOG(VB_PLAYBACK, LOG_INFO,
    179182        QString("SwitchToVideo: Video size %1 x %2: \n"
    180183                "    %7 displaying resolution %3 x %4, %5mm x %6mm")