summaryrefslogtreecommitdiff
path: root/src/lib/ecore_x/xlib/ecore_x_image.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/lib/ecore_x/xlib/ecore_x_image.c')
-rw-r--r--src/lib/ecore_x/xlib/ecore_x_image.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/lib/ecore_x/xlib/ecore_x_image.c b/src/lib/ecore_x/xlib/ecore_x_image.c
index 6ce8919df5..016323c175 100644
--- a/src/lib/ecore_x/xlib/ecore_x_image.c
+++ b/src/lib/ecore_x/xlib/ecore_x_image.c
@@ -194,6 +194,10 @@ ecore_x_image_new(int w,
194 im->h = h; 194 im->h = h;
195 im->vis = vis; 195 im->vis = vis;
196 im->depth = depth; 196 im->depth = depth;
197 if (depth <= 8) im->bpp = 1;
198 else if (depth <= 16) im->bpp = 2;
199 else if (depth <= 24) im->bpp = 3;
200 else im->bpp = 4;
197 _ecore_x_image_shm_check(); 201 _ecore_x_image_shm_check();
198 im->shm = _ecore_x_image_shm_can; 202 im->shm = _ecore_x_image_shm_can;
199 return im; 203 return im;