]>
Commit | Line | Data |
---|---|---|
498f38d8 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 @@ | |
df17edb2 JB |
4 | |
5 | DECLARE_NO_COPY_CLASS(wxGIFTimer) | |
6 | }; | |
7 | + | |
8 | +static int safedelay(int ms) | |
9 | +{ | |
498f38d8 | 10 | + return (ms >= 10) ? ms : 10; |
df17edb2 JB |
11 | +} |
12 | #endif | |
13 | ||
14 | ||
498f38d8 | 15 | @@ -388,7 +393,7 @@ |
df17edb2 JB |
16 | if ( m_gifDecoder->IsAnimation() ) |
17 | { | |
18 | m_gifTimer = new wxGIFTimer(this); | |
498f38d8 JK |
19 | - m_gifTimer->Start(m_gifDecoder->GetDelay(0), true); |
20 | + m_gifTimer->Start(safedelay(m_gifDecoder->GetDelay(0)), true); | |
df17edb2 JB |
21 | } |
22 | else | |
23 | { | |
498f38d8 JK |
24 | @@ -522,7 +527,7 @@ |
25 | win->Refresh(img.HasMask(), &rect); | |
df17edb2 JB |
26 | } |
27 | ||
498f38d8 JK |
28 | - timer->Start(m_gifDecoder->GetDelay(m_nCurrFrame), true); |
29 | + timer->Start(safedelay(m_gifDecoder->GetDelay(m_nCurrFrame)), true); | |
df17edb2 JB |
30 | } |
31 | ||
32 | void wxHtmlImageCell::Layout(int w) |