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

List:       kde-commits
Subject:    extragear/network/konversation
From:       Unai Garro <ugarro () telefonica ! net>
Date:       2005-06-19 12:53:10
Message-ID: 1119185590.111810.12902.nullmailer () svn ! kde ! org
[Download RAW message or body]

SVN commit 427071 by uga:

Both QPainter and KImageEffect seem to have problems blending two images that contain \
alpha channels. The resulting alpha seems to  be calculated wrong. bitBlt seems to \
behave correctly.


 M  +1 -0      ChangeLog  
 M  +6 -4      src/common.cpp  


--- trunk/extragear/network/konversation/ChangeLog #427070:427071
@@ -4,6 +4,7 @@
 - Added Firefox style searchbar, courtesy of Renchi Raju
 - Tab grouping added so that new tabs will be after the server tab they belong and \
                not at the end. Courtesy of Michael Kreitzer
 - Implemented sending commands as messages on Ctrl+Enter, courtesy of Eike Hein
+- Fixed alpha blending of nick icons
 
 Changes from 0.17 to 0.18
 - All nicks were blue when colored nicks are disabled with some setups
--- trunk/extragear/network/konversation/src/common.cpp #427070:427071
@@ -126,10 +126,12 @@
 {
   if ( over.isNull() ) return under;
 
-  QPixmap result = under;
-
-  QPainter p( &result );
-  p.drawPixmap( 0, 0, over );
+  QImage imResult; imResult=under;
+  QImage imOver; imOver=over;
+  QPixmap result;
+  
+  bitBlt(&imResult,0,0,&imOver,0,0,imOver.width(),imOver.height(),0);
+  result=imResult;
   return result;
 }
 


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

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