summaryrefslogtreecommitdiffstats
path: root/src/plugins
diff options
context:
space:
mode:
authorKurt Korbatits <kurt.korbatits@nokia.com>2010-06-10 03:46:34 (GMT)
committerKurt Korbatits <kurt.korbatits@nokia.com>2010-06-10 03:46:34 (GMT)
commit558089fb21e7f388f9810c51abbd9bf3872b2178 (patch)
tree5467a2443fe5df0d39df16deff0f9ae7ebb6e7a3 /src/plugins
parent04ba5e501b96f77b56d6cf49fe8fb059a256e1e7 (diff)
downloadQt-558089fb21e7f388f9810c51abbd9bf3872b2178.zip
Qt-558089fb21e7f388f9810c51abbd9bf3872b2178.tar.gz
Qt-558089fb21e7f388f9810c51abbd9bf3872b2178.tar.bz2
QMovie cpu usage up to 100%
Changed gif default frame rate from 0 to 100ms. This is the same as what web browsers seem to be using. Task-number:QTBUG-2441 Reviewed-by:Dmytro Poplavskiy
Diffstat (limited to 'src/plugins')
-rw-r--r--src/plugins/imageformats/gif/qgifhandler.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/plugins/imageformats/gif/qgifhandler.cpp b/src/plugins/imageformats/gif/qgifhandler.cpp
index 25d3dfa..56dac52 100644
--- a/src/plugins/imageformats/gif/qgifhandler.cpp
+++ b/src/plugins/imageformats/gif/qgifhandler.cpp
@@ -1026,7 +1026,7 @@ inline QRgb QGIFFormat::color(uchar index) const
QGifHandler::QGifHandler()
{
gifFormat = new QGIFFormat;
- nextDelay = 0;
+ nextDelay = 100;
loopCnt = 1;
frameNumber = -1;
scanIsCached = false;