diff options
author | Thomas Freitag <Thomas.Freitag@alfa.de> | 2009-05-31 22:52:23 +0200 |
---|---|---|
committer | Albert Astals Cid <aacid@kde.org> | 2009-06-02 23:02:22 +0200 |
commit | 78a58931b4347ecb505bad5a51104382ef5f91c7 (patch) | |
tree | 8aee974beea02e11f1417e873a95ae87047cb870 /splash | |
parent | 47c26747b32c242ec8ac60e7b93150a67eb22e31 (diff) |
Add splashClearColor that assigns white to the given colorptr
Diffstat (limited to 'splash')
-rw-r--r-- | splash/SplashTypes.h | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/splash/SplashTypes.h b/splash/SplashTypes.h index ba12a820..a8686520 100644 --- a/splash/SplashTypes.h +++ b/splash/SplashTypes.h @@ -13,6 +13,7 @@ // // Copyright (C) 2006 Albert Astals Cid <aacid@kde.org> // Copyright (C) 2008 Tomas Are Haavet <tomasare@gmail.com> +// Copyright (C) 2009 Thomas Freitag <Thomas.Freitag@alfa.de> // // To see a description of the changes please see the Changelog file that // came with your tarball or type make ChangeLog if you are building from git @@ -90,6 +91,15 @@ static inline Guchar splashCMYK8Y(SplashColorPtr cmyk8) { return cmyk8[2]; } static inline Guchar splashCMYK8K(SplashColorPtr cmyk8) { return cmyk8[3]; } #endif +static inline void splashClearColor(SplashColorPtr dest) { + dest[0] = 0; + dest[1] = 0; + dest[2] = 0; +#if SPLASH_CMYK + dest[3] = 0; +#endif +} + static inline void splashColorCopy(SplashColorPtr dest, SplashColorPtr src) { dest[0] = src[0]; dest[1] = src[1]; |