MRI-Binding: Bitmap#get_pixel always returns a Color object

This commit is contained in:
Jonas Kulla 2014-07-16 17:35:36 +02:00
parent 3a3ccf590e
commit a17043f785
2 changed files with 0 additions and 10 deletions

View File

@ -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); );

View File

@ -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); )