- UpdateRatio only when it is displayed

- Resample favicon to 16x16 before displaying it for better quality
- Updated TODO
This commit is contained in:
Christophe Dumez 2007-08-29 13:45:51 +00:00
parent ea3a635d49
commit 17b8f76dda
3 changed files with 5 additions and 2 deletions

View file

@ -395,6 +395,8 @@ class RssManager : public QObject{
Image image(QDir::cleanPath(path+".ico").toUtf8().data());
// Convert to PNG since we can't read ICO format
image.magick("PNG");
// Resize to 16x16px
image.sample(Geometry(16, 16));
image.write(path.toUtf8().data());
QFile::remove(path+".ico");
}catch(Magick::Exception &error_){