X-Git-Url: http://git.asbjorn.biz/?a=blobdiff_plain;f=lib%2Fruby%2Fgfx.c;h=3a5f60c03bd145c16134c799ce4b10dbce4d877a;hb=4f2366641015f517c0e4f841b7ae6a9b90c7b184;hp=6315678240e17e0be62a89f1fcb2c280138ad758;hpb=2c719855eac434f01d47ba0717d76de65939d74e;p=swftools.git diff --git a/lib/ruby/gfx.c b/lib/ruby/gfx.c index 6315678..3a5f60c 100644 --- a/lib/ruby/gfx.c +++ b/lib/ruby/gfx.c @@ -234,7 +234,7 @@ static VALUE image_has_alpha(VALUE cls) gfxcolor_t*data = image->image->data; int t; for(t=0;ta!=255) + if(data[t].a!=255) return Qtrue; } return Qfalse; @@ -767,6 +767,7 @@ void Init_gfx() imagedriver = gfxsource_image_create(); GFX = rb_define_module("GFX"); + rb_define_const(GFX, "VERSION", INT2FIX(20100309)); rb_define_module_function(GFX, "setparameter", gfx_setparameter, 2);