MRI-Binding: Bitmap#get_pixel always returns a Color object
This commit is contained in:
		
							parent
							
								
									3a3ccf590e
								
							
						
					
					
						commit
						a17043f785
					
				
					 2 changed files with 0 additions and 10 deletions
				
			
		| 
						 | 
					@ -203,11 +203,6 @@ RB_METHOD(bitmapGetPixel)
 | 
				
			||||||
 | 
					
 | 
				
			||||||
	rb_get_args(argc, argv, "ii", &x, &y RB_ARG_END);
 | 
						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;
 | 
						Color value;
 | 
				
			||||||
	GUARD_EXC( value = b->getPixel(x, y); );
 | 
						GUARD_EXC( value = b->getPixel(x, y); );
 | 
				
			||||||
 | 
					
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
| 
						 | 
					@ -189,11 +189,6 @@ MRB_METHOD(bitmapGetPixel)
 | 
				
			||||||
 | 
					
 | 
				
			||||||
	mrb_get_args(mrb, "ii", &x, &y);
 | 
						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;
 | 
						Color value;
 | 
				
			||||||
	GUARD_EXC( value = b->getPixel(x, y); )
 | 
						GUARD_EXC( value = b->getPixel(x, y); )
 | 
				
			||||||
 | 
					
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue