use pm instead of PAL_MODE_RGB666 when allocating colors

SVN revision: 39188
This commit is contained in:
Vincent Torri 2009-02-25 07:24:53 +00:00
parent adab85b566
commit 725d8b4bfb
2 changed files with 2 additions and 2 deletions

View 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);

View 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);