]> git.pld-linux.org Git - packages/wxWidgets.git/blame - wxWidgets-gif0delay.patch
- updated pickerbase patch to fix build
[packages/wxWidgets.git] / wxWidgets-gif0delay.patch
CommitLineData
922afac4
JK
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 @@
7d56a13b
JB
4
5 DECLARE_NO_COPY_CLASS(wxGIFTimer)
6 };
7+
8+static int safedelay(int ms)
9+{
922afac4 10+ return (ms >= 10) ? ms : 10;
7d56a13b
JB
11+}
12 #endif
13
14
922afac4 15@@ -388,7 +393,7 @@
7d56a13b
JB
16 if ( m_gifDecoder->IsAnimation() )
17 {
18 m_gifTimer = new wxGIFTimer(this);
922afac4
JK
19- m_gifTimer->Start(m_gifDecoder->GetDelay(0), true);
20+ m_gifTimer->Start(safedelay(m_gifDecoder->GetDelay(0)), true);
7d56a13b
JB
21 }
22 else
23 {
922afac4
JK
24@@ -522,7 +527,7 @@
25 win->Refresh(img.HasMask(), &rect);
7d56a13b
JB
26 }
27
922afac4
JK
28- timer->Start(m_gifDecoder->GetDelay(m_nCurrFrame), true);
29+ timer->Start(safedelay(m_gifDecoder->GetDelay(m_nCurrFrame)), true);
7d56a13b
JB
30 }
31
32 void wxHtmlImageCell::Layout(int w)
This page took 0.033995 seconds and 4 git commands to generate.