aboutsummaryrefslogtreecommitdiff
path: root/image.c
diff options
context:
space:
mode:
authorHans-Christoph Steiner <eighthave@users.sourceforge.net>2012-12-06 03:38:40 +0000
committerHans-Christoph Steiner <eighthave@users.sourceforge.net>2012-12-06 03:38:40 +0000
commite48435d13a4c9ee28ed0dd83bc031a28c53c1741 (patch)
tree765ae6d6464f8bc6c48f43729881dadeb6f49ec8 /image.c
parente1d6f308227a1014e3ac8edfd69e00da984ca598 (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.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/image.c b/image.c
index 79cb3ac..f95a3e9 100644
--- a/image.c
+++ b/image.c
@@ -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",