summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCarsten Haitzler (Rasterman) <raster@rasterman.com>2013-12-13 20:21:53 +0900
committerCarsten Haitzler (Rasterman) <raster@rasterman.com>2013-12-13 21:26:05 +0900
commit611714649bd522471c62fc37a7260840dd860e99 (patch)
tree3823274a87ddf9e907ec47c909dfcd0e165ca1f9
parentf745ac259120408500a83591e0ad2b21124e6428 (diff)
evas - silence coverity in code
fixes CID 1039549 and CID 1039548 - though it isn't a bug, but means it should not come back in coverity.
-rw-r--r--src/modules/evas/engines/software_x11/evas_xlib_color.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/modules/evas/engines/software_x11/evas_xlib_color.c b/src/modules/evas/engines/software_x11/evas_xlib_color.c
index d5592ec2ba..5f3f9aa7cb 100644
--- a/src/modules/evas/engines/software_x11/evas_xlib_color.c
+++ b/src/modules/evas/engines/software_x11/evas_xlib_color.c
@@ -70,6 +70,7 @@ x_color_alloc_rgb(int nr, int ng, int nb, Display *d, Colormap cmap, Visual *v)
70 val = (int)(((b * 255) / ((nb) - 1))); 70 val = (int)(((b * 255) / ((nb) - 1)));
71 val = (val << 8) | val; 71 val = (val << 8) | val;
72 xcl.blue = (unsigned short)(val); 72 xcl.blue = (unsigned short)(val);
73 xcl.pixel = 0;
73 xcl_in = xcl; 74 xcl_in = xcl;
74 ret = XAllocColor(d, cmap, &xcl); 75 ret = XAllocColor(d, cmap, &xcl);
75 dr = (int)xcl_in.red - (int)xcl.red; 76 dr = (int)xcl_in.red - (int)xcl.red;
@@ -139,6 +140,7 @@ x_color_alloc_gray(int ng, Display *d, Colormap cmap, Visual *v)
139 xcl.red = (unsigned short)(val); 140 xcl.red = (unsigned short)(val);
140 xcl.green = (unsigned short)(val); 141 xcl.green = (unsigned short)(val);
141 xcl.blue = (unsigned short)(val); 142 xcl.blue = (unsigned short)(val);
143 xcl.pixel = 0;
142 xcl_in = xcl; 144 xcl_in = xcl;
143 ret = XAllocColor(d, cmap, &xcl); 145 ret = XAllocColor(d, cmap, &xcl);
144 if ((ret == 0) || 146 if ((ret == 0) ||