[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kde-commits
Subject:    kdebase/kioslave/thumbnail
From:       Stephan Kulow <coolo () kde ! org>
Date:       2003-10-31 8:40:10
[Download RAW message or body]

CVS commit by coolo: 

adding work around for paletted PNGs (patch by Jeff Smith)
CCMAIL: 66352-done@bugs.kde.org


  M +6 -2      imagecreator.cpp   1.11


--- kdebase/kioslave/thumbnail/imagecreator.cpp  #1.10:1.11
@@ -41,5 +41,9 @@ bool ImageCreator::create(const QString 
 {
     // create image preview
-    return img.load( path );
+    if (!img.load( path ))
+        return false;
+    if (img.depth() != 32)
+        img = img.convertDepth( 32 );
+    return true;
 }
 


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic