[vlc-devel] [PATCH] Fixed Santa hat not showing on cone after playback ends or is stopped even if it should

David Berdik dgberdik at gmail.com
Tue Jan 5 12:22:32 UTC 2021


I should note that this patch is intended for VLC 3.

~ David G. Berdik


On Tue, Dec 29, 2020 at 9:57 PM David Berdik <dgberdik at gmail.com> wrote:

> ---
>  modules/gui/qt/components/interface_widgets.cpp | 3 +++
>  1 file changed, 3 insertions(+)
>
> diff --git a/modules/gui/qt/components/interface_widgets.cpp
> b/modules/gui/qt/components/interface_widgets.cpp
> index 78dbc2f9c3..ced7d9f8c7 100644
> --- a/modules/gui/qt/components/interface_widgets.cpp
> +++ b/modules/gui/qt/components/interface_widgets.cpp
> @@ -35,6 +35,7 @@
>
>  #include "menus.hpp"             /* Popup menu on bgWidget */
>
> +#include <QDate>
>  #include <QLabel>
>  #include <QToolButton>
>  #include <QPalette>
> @@ -445,6 +446,8 @@ void BackgroundWidget::titleUpdated( const QString&
> title )
>              i_pos + 5 == title.indexOf( "Bi" /* directional */ "ll",
>                                         i_pos, Qt::CaseInsensitive ) )
>                  updateDefaultArt( ":/logo/vlc128-kb.png" );
> +        else if( QDate::currentDate().dayOfYear() >= QT_XMAS_JOKE_DAY )
> +                updateDefaultArt( ":/logo/vlc128-xmas.png" );
>          else
>                  updateDefaultArt( ":/logo/vlc128.png" );
>      }
> --
> 2.30.0.windows.1
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman.videolan.org/pipermail/vlc-devel/attachments/20210105/b3d1f13f/attachment.html>


More information about the vlc-devel mailing list