Skip to content

Commit

Permalink
MythMainWindow: Only disable background autopainting for non-Qt painters
Browse files Browse the repository at this point in the history
72976f3 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.
  • Loading branch information
Mark Kendall committed May 2, 2011
1 parent b4b9f0c commit 3679b7e
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions mythtv/libs/libmythui/mythmainwindow.cpp
Expand Up @@ -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
Expand Down Expand Up @@ -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();
Expand Down

0 comments on commit 3679b7e

Please sign in to comment.