use pm instead of PAL_MODE_RGB666 when allocating colors
authorcaro <caro@7cbeb6ba-43b4-40fd-8cce-4c39aea84d33>
Wed, 25 Feb 2009 07:24:53 +0000 (07:24 +0000)
committercaro <caro@7cbeb6ba-43b4-40fd-8cce-4c39aea84d33>
Wed, 25 Feb 2009 07:24:53 +0000 (07:24 +0000)
git-svn-id: svn+ssh://svn.enlightenment.org/var/svn/e/trunk/evas@39188 7cbeb6ba-43b4-40fd-8cce-4c39aea84d33

src/modules/engines/software_x11/evas_xcb_outbuf.c
src/modules/engines/software_x11/evas_xlib_outbuf.c

index 80126c1..bbe380b 100644 (file)
@@ -299,7 +299,7 @@ evas_software_xcb_outbuf_setup_x(int               w,
                   evas_software_xcb_x_color_allocate(conn,
                                                      cmap,
                                                      vis,
-                                                     PAL_MODE_RGB666);
+                                                     pm);
                if (!buf->priv.pal)
                  {
                     free(buf);
index 3f84cf6..ea4c4ac 100644 (file)
@@ -268,7 +268,7 @@ evas_software_xlib_outbuf_setup_x(int w, int h, int rot, Outbuf_Depth depth,
                  }
                /* FIXME: only alloc once per display+cmap */
                buf->priv.pal = evas_software_xlib_x_color_allocate(disp, cmap, vis,
-                                                                  PAL_MODE_RGB666);
+                                                                   pm);
                if (!buf->priv.pal)
                  {
                     free(buf);