]> git.pld-linux.org Git - packages/crossmingw32-wxWidgets.git/blob - wxWidgets-gif0delay.patch
- force %{_lib}-independent libdir
[packages/crossmingw32-wxWidgets.git] / wxWidgets-gif0delay.patch
1 --- wxWidgets-2.7.1/src/html/m_image.cpp.orig   2006-10-12 14:52:20.000000000 +0200
2 +++ wxWidgets-2.7.1/src/html/m_image.cpp        2006-10-15 20:32:56.000000000 +0200
3 @@ -333,6 +333,11 @@
4  
5      DECLARE_NO_COPY_CLASS(wxGIFTimer)
6  };
7 +
8 +static int safedelay(int ms)
9 +{
10 +       return (ms >= 10) ? ms : 10;
11 +}
12  #endif
13  
14  
15 @@ -388,7 +393,7 @@
16                          if ( m_gifDecoder->IsAnimation() )
17                          {
18                              m_gifTimer = new wxGIFTimer(this);
19 -                            m_gifTimer->Start(m_gifDecoder->GetDelay(0), true);
20 +                            m_gifTimer->Start(safedelay(m_gifDecoder->GetDelay(0)), true);
21                          }
22                          else
23                          {
24 @@ -522,7 +527,7 @@
25          win->Refresh(img.HasMask(), &rect);
26      }
27  
28 -    timer->Start(m_gifDecoder->GetDelay(m_nCurrFrame), true);
29 +    timer->Start(safedelay(m_gifDecoder->GetDelay(m_nCurrFrame)), true);
30  }
31  
32  void wxHtmlImageCell::Layout(int w)
This page took 0.045365 seconds and 3 git commands to generate.