summaryrefslogtreecommitdiff
path: root/splash
diff options
context:
space:
mode:
authorAlbert Astals Cid <aacid@kde.org>2013-02-19 23:59:17 +0100
committerAlbert Astals Cid <aacid@kde.org>2013-02-19 23:59:17 +0100
commit8fb243bf11a979af8bfa36427436940706c9f71d (patch)
tree7bb870a94675d8822b3e1558fd2ce9c7fbc38cd3 /splash
parent8a0199a0247c1a03a4d64375ca8bc900570d1817 (diff)
Initialize cSrcNonIso[3] in splashModeXBGR8
Fixes valgrind warning
Diffstat (limited to 'splash')
-rw-r--r--splash/Splash.cc3
1 files changed, 2 insertions, 1 deletions
diff --git a/splash/Splash.cc b/splash/Splash.cc
index b9fa11af..3d80c4c8 100644
--- a/splash/Splash.cc
+++ b/splash/Splash.cc
@@ -525,8 +525,9 @@ void Splash::pipeRun(SplashPipe *pipe) {
cSrcNonIso[3] = clip255(pipe->cSrc[3] +
((pipe->cSrc[3] - cDest[3]) * t) / 255);
#endif
- case splashModeRGB8:
case splashModeXBGR8:
+ cSrcNonIso[3] = 255;
+ case splashModeRGB8:
case splashModeBGR8:
cSrcNonIso[2] = clip255(pipe->cSrc[2] +
((pipe->cSrc[2] - cDest[2]) * t) / 255);