diff options
author | Hans-Christoph Steiner <eighthave@users.sourceforge.net> | 2012-12-06 03:38:40 +0000 |
---|---|---|
committer | Hans-Christoph Steiner <eighthave@users.sourceforge.net> | 2012-12-06 03:38:40 +0000 |
commit | e48435d13a4c9ee28ed0dd83bc031a28c53c1741 (patch) | |
tree | 765ae6d6464f8bc6c48f43729881dadeb6f49ec8 /image.c | |
parent | e1d6f308227a1014e3ac8edfd69e00da984ca598 (diff) |
if image is set to blank, then use filler image and post error message
svn path=/trunk/externals/moonlib/; revision=16650
Diffstat (limited to 'image.c')
-rw-r--r-- | image.c | 6 |
1 files changed, 6 insertions, 0 deletions
@@ -48,6 +48,12 @@ void image_drawme(t_image *x, t_glist *glist, int firsttime) { if (firsttime) { + if (x->x_image == &s_) // if we have a blank image name, use the included filler + { + x->x_image = gensym("::moonlib::image::noimage"); + x->x_type = 1; + pd_error(x, "[image]: no image found"); + } if(x->x_type) { sys_vgui(".x%lx.c create image %d %d -tags %xS\n", |