From 3679b7e0e72a4223052e1b5c7b8cac48fdf1a407 Mon Sep 17 00:00:00 2001 From: Mark Kendall Date: Mon, 2 May 2011 19:15:53 +0800 Subject: [PATCH] MythMainWindow: Only disable background autopainting for non-Qt painters 72976f3bbd1164e4d disabled autopainting of the background with benefits seen in most cases. On OSX with the Qt painter, however, the lack of autopainting leads to some significant rendering 'dropouts' when navigating between screens. As a compromise, retain autopainting for the Qt painter. --- mythtv/libs/libmythui/mythmainwindow.cpp | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/mythtv/libs/libmythui/mythmainwindow.cpp b/mythtv/libs/libmythui/mythmainwindow.cpp index 9fa99e0f102..36840cf7ee1 100644 --- a/mythtv/libs/libmythui/mythmainwindow.cpp +++ b/mythtv/libs/libmythui/mythmainwindow.cpp @@ -877,8 +877,6 @@ void MythMainWindow::Init(void) GetMythUI()->ThemeWidget(this); Show(); - setAttribute(Qt::WA_NoSystemBackground); - setAutoFillBackground(false); if (!GetMythDB()->GetNumSetting("HideMouseCursor", 0)) setMouseTracking(true); // Required for mouse cursor auto-hide @@ -970,6 +968,12 @@ void MythMainWindow::Init(void) return; } + if (d->painter->GetName() != "Qt") + { + setAttribute(Qt::WA_NoSystemBackground); + setAutoFillBackground(false); + } + d->paintwin->move(0, 0); d->paintwin->setFixedSize(size()); d->paintwin->raise();