Browse files

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

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...
1 parent fed0d91 commit 72976f3bbd1164e4d4f0778e33c6b4349f5a098a mark-kendall committed Apr 20, 2011
Showing with 2 additions and 0 deletions.
  1. +2 −0 mythtv/libs/libmythui/mythmainwindow.cpp
@@ -850,6 +850,8 @@ void MythMainWindow::Init(void)
+ setAttribute(Qt::WA_NoSystemBackground);
+ setAutoFillBackground(false);
if (!GetMythDB()->GetNumSetting("HideMouseCursor", 0))
setMouseTracking(true); // Required for mouse cursor auto-hide

0 comments on commit 72976f3

Please sign in to comment.