[prev in list] [next in list] [prev in thread] [next in thread]
List: kde-commits
Subject: KDE/kdebase/workspace/ksmserver
From: Fredrik Höglund <fredrik () kde ! org>
Date: 2009-10-03 15:55:13
Message-ID: 1254585313.076162.10221.nullmailer () svn ! kde ! org
[Download RAW message or body]
SVN commit 1030959 by fredrik:
Fix the flash that appears when the logout dialog is shown with compositing
enabled but the logout effect disabled.
BUG: 202930
M +9 -0 fadeeffect.cpp
--- trunk/KDE/kdebase/workspace/ksmserver/fadeeffect.cpp #1030958:1030959
@@ -340,6 +340,15 @@
memcpy((void*)m_original, (const void*)m_image->data, size);
memcpy((void*)m_final, (const void*)m_image->data, size);
+ if (m_image->depth > 16) {
+ // Make sure that the alpha channel is initialized to 0xff
+ for (int y = 0; y < image->height; y++) {
+ quint32 *pixels = (quint32*)(m_original + (m_image->bytes_per_line * y));
+ for (int x = 0; x < image->width; x++)
+ pixels[x] |= 0xff000000;
+ }
+ }
+
if (m_image->depth != 16)
toGray32(m_final);
else
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic