do not segv when no pallete.

spotted this bug when I disabled all converters in a config mistake :-)



SVN revision: 41116
This commit is contained in:
Gustavo Sverzut Barbieri 2009-06-20 05:55:37 +00:00
parent ebeee4b5ce
commit 728b003fee
1 changed files with 2 additions and 1 deletions

View File

@ -324,7 +324,8 @@ evas_software_xlib_outbuf_setup_x(int w, int h, int rot, Outbuf_Depth depth,
buf->priv.x11.xlib.depth,
buf->priv.mask.r,
buf->priv.mask.g,
buf->priv.mask.b, buf->priv.pal->colors);
buf->priv.mask.b,
buf->priv.pal ? buf->priv.pal->colors: -1);
}
}
evas_software_xlib_outbuf_drawable_set(buf, draw);