summaryrefslogtreecommitdiffstats
path: root/src/trace
diff options
context:
space:
mode:
authorKrzysztof Kosi??ski <tweenk.pl@gmail.com>2013-09-19 15:52:21 +0000
committerKrzysztof KosiƄski <tweenk.pl@gmail.com>2013-09-19 15:52:21 +0000
commit26e21f069d05a0ba22ec97a54bb541ff7346196d (patch)
treefee3397bb1bac162121c1cc0b3e162d34d09a9fe /src/trace
parentMerge in doxygen updates from Vinipsmaker (diff)
downloadinkscape-26e21f069d05a0ba22ec97a54bb541ff7346196d.tar.gz
inkscape-26e21f069d05a0ba22ec97a54bb541ff7346196d.zip
Fix colors when tracing
(bzr r12541)
Diffstat (limited to 'src/trace')
-rw-r--r--src/trace/imagemap-gdk.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/trace/imagemap-gdk.cpp b/src/trace/imagemap-gdk.cpp
index 7c7139002..298414074 100644
--- a/src/trace/imagemap-gdk.cpp
+++ b/src/trace/imagemap-gdk.cpp
@@ -152,9 +152,9 @@ RgbMap *gdkPixbufToRgbMap(GdkPixbuf *buf)
{
int alpha = (int)p[3];
int white = 255 - alpha;
- int r = (int)p[2]; r = r * alpha / 256 + white;
+ int r = (int)p[0]; r = r * alpha / 256 + white;
int g = (int)p[1]; g = g * alpha / 256 + white;
- int b = (int)p[0]; b = b * alpha / 256 + white;
+ int b = (int)p[2]; b = b * alpha / 256 + white;
rgbMap->setPixel(rgbMap, x, y, r, g, b);
p += n_channels;