MRI-Binding: Bitmap#get_pixel always returns a Color object
This commit is contained in:
parent
3a3ccf590e
commit
a17043f785
|
@ -203,11 +203,6 @@ RB_METHOD(bitmapGetPixel)
|
|||
|
||||
rb_get_args(argc, argv, "ii", &x, &y RB_ARG_END);
|
||||
|
||||
GUARD_EXC(
|
||||
if (x < 0 || y < 0 || x >= b->width() || y >= b->height())
|
||||
return Qnil;
|
||||
)
|
||||
|
||||
Color value;
|
||||
GUARD_EXC( value = b->getPixel(x, y); );
|
||||
|
||||
|
|
|
@ -189,11 +189,6 @@ MRB_METHOD(bitmapGetPixel)
|
|||
|
||||
mrb_get_args(mrb, "ii", &x, &y);
|
||||
|
||||
GUARD_EXC(
|
||||
if (x < 0 || y < 0 || x >= b->width() || y >= b->height())
|
||||
return mrb_nil_value();
|
||||
)
|
||||
|
||||
Color value;
|
||||
GUARD_EXC( value = b->getPixel(x, y); )
|
||||
|
||||
|
|
Loading…
Reference in New Issue