From a07bec62c0c28d63af7ba07e5c4715a9345f35b0 Mon Sep 17 00:00:00 2001 From: Jakub Bogusz Date: Fri, 7 Feb 2014 15:10:16 +0100 Subject: [PATCH] - resurrected gifdelay patch (limit min gif frame delay to 10ms, at which UI remains responsive; 1ms is too little) - release 4 --- wxWidgets-gifdelay.patch | 24 ++++++++++++++++++++++++ wxWidgets.spec | 4 +++- 2 files changed, 27 insertions(+), 1 deletion(-) create mode 100644 wxWidgets-gifdelay.patch diff --git a/wxWidgets-gifdelay.patch b/wxWidgets-gifdelay.patch new file mode 100644 index 0000000..eae0c43 --- /dev/null +++ b/wxWidgets-gifdelay.patch @@ -0,0 +1,24 @@ +--- wxWidgets-3.0.0/src/html/m_image.cpp.orig 2013-11-11 14:10:39.000000000 +0100 ++++ wxWidgets-3.0.0/src/html/m_image.cpp 2014-02-06 19:55:34.160255248 +0100 +@@ -403,8 +403,8 @@ + { + m_gifTimer = new wxGIFTimer(this); + long delay = m_gifDecoder->GetDelay(0); +- if ( delay == 0 ) +- delay = 1; ++ if ( delay < 10 ) ++ delay = 10; + m_gifTimer->Start(delay, true); + } + else +@@ -534,8 +534,8 @@ + } + + long delay = m_gifDecoder->GetDelay(m_nCurrFrame); +- if ( delay == 0 ) +- delay = 1; ++ if ( delay < 10 ) ++ delay = 10; + timer->Start(delay, true); + } + diff --git a/wxWidgets.spec b/wxWidgets.spec index 10c89a6..38b4953 100644 --- a/wxWidgets.spec +++ b/wxWidgets.spec @@ -14,7 +14,7 @@ Summary(pl.UTF-8): Biblioteka wxWidgets Name: wxWidgets %define majver 3.0 Version: 3.0.0 -Release: 3 +Release: 4 License: wxWindows Library Licence 3.1 (LGPL v2+ with exception) Group: X11/Libraries Source0: http://downloads.sourceforge.net/wxwindows/%{name}-%{version}.tar.bz2 @@ -24,6 +24,7 @@ Patch1: %{name}-ac.patch Patch2: %{name}-link.patch Patch3: export-wxGetRootWindow.patch Patch4: %{name}-gtk3.patch +Patch5: %{name}-gifdelay.patch URL: http://www.wxWidgets.org/ %{?with_directfb:BuildRequires: DirectFB-devel >= 0.9.23} BuildRequires: OpenGL-GLU-devel @@ -778,6 +779,7 @@ obsługą UNICODE. %patch2 -p1 %patch3 -p1 %patch4 -p1 +%patch5 -p1 %{__rm} build/aclocal/bakefile*.m4 -- 2.44.0