]> git.pld-linux.org Git - packages/wxWidgets.git/commitdiff
- resurrected gifdelay patch (limit min gif frame delay to 10ms, at which UI remains... auto/th/wxWidgets-3.0.0-4
authorJakub Bogusz <qboosh@pld-linux.org>
Fri, 7 Feb 2014 14:10:16 +0000 (15:10 +0100)
committerJakub Bogusz <qboosh@pld-linux.org>
Fri, 7 Feb 2014 14:10:16 +0000 (15:10 +0100)
- release 4

wxWidgets-gifdelay.patch [new file with mode: 0644]
wxWidgets.spec

diff --git a/wxWidgets-gifdelay.patch b/wxWidgets-gifdelay.patch
new file mode 100644 (file)
index 0000000..eae0c43
--- /dev/null
@@ -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);
+ }
index 10c89a6a1042e007e2b2163e3090083fcbff9cd6..38b49530bd8310387af0d4727b6ce0eb84de5aac 100644 (file)
@@ -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
 
This page took 0.150071 seconds and 4 git commands to generate.