summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 8b0bc44)
raw | patch | inline | side by side (parent: 8b0bc44)
author | ishmal <ishmal@users.sourceforge.net> | |
Thu, 1 Jun 2006 04:30:42 +0000 (04:30 +0000) | ||
committer | ishmal <ishmal@users.sourceforge.net> | |
Thu, 1 Jun 2006 04:30:42 +0000 (04:30 +0000) |
src/color.cpp | patch | blob | history |
diff --git a/src/color.cpp b/src/color.cpp
index 4c64d84cd1c0a23120dcf613ff9e13f0c77703e7..2a6da863c4fd35bffbe2033dcc1389bfe72ca64c 100644 (file)
--- a/src/color.cpp
+++ b/src/color.cpp
alpha);
} else {
float rgb[3];
+ rgb[0] = rgb[1] = rgb[2] = 0.0;
sp_color_get_rgb_floatv (color, rgb);
rgba = SP_RGBA32_U_COMPOSE(SP_COLOR_F_TO_U(rgb[0]),
SP_COLOR_F_TO_U(rgb[1]),