do not segv when no pallete.
authorbarbieri <barbieri@7cbeb6ba-43b4-40fd-8cce-4c39aea84d33>
Sat, 20 Jun 2009 05:55:37 +0000 (05:55 +0000)
committerbarbieri <barbieri@7cbeb6ba-43b4-40fd-8cce-4c39aea84d33>
Sat, 20 Jun 2009 05:55:37 +0000 (05:55 +0000)
spotted this bug when I disabled all converters in a config mistake :-)

git-svn-id: svn+ssh://svn.enlightenment.org/var/svn/e/trunk/evas@41116 7cbeb6ba-43b4-40fd-8cce-4c39aea84d33

src/modules/engines/software_x11/evas_xlib_outbuf.c

index 442119d..3fb7e20 100644 (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);