Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
libmythui: Stop the main window background from automatically painting.
This sets 2 properties on the MythMainWindow widget (N.B. not the
painter widget) to prevent Qt from continually repainting the theme
background.

Mythfrontend startup is now noticably faster and the brief flash of the
theme background when starting video playback is gone, giving a slight
speed improvement there as well.

I can't see any adverse effects on the several frontends tested with a
variety of different video drivers and render options.
  • Loading branch information
mark-kendall committed Apr 20, 2011
1 parent fed0d91 commit 72976f3
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions mythtv/libs/libmythui/mythmainwindow.cpp
Expand Up @@ -850,6 +850,8 @@ 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

0 comments on commit 72976f3

Please sign in to comment.