31
32
33
34
35
36
37
38
39
40
41
42
|
# File 'ext/caca/caca-dither.c', line 31
static VALUE dither_initialize(VALUE self, VALUE bpp, VALUE w, VALUE h, VALUE pitch, VALUE rmask, VALUE gmask, VALUE bmask, VALUE amask)
{
caca_dither_t *dither;
dither = caca_create_dither(NUM2UINT(bpp), NUM2UINT(w), NUM2UINT(h), NUM2UINT(pitch), NUM2ULONG(rmask), NUM2ULONG(gmask), NUM2ULONG(bmask), NUM2ULONG(amask));
if(dither == NULL)
{
rb_raise(rb_eRuntimeError, "%s", strerror(errno));
}
_SELF = dither;
return self;
}
|