return Rectangle(x - s->xleft, y - s->yabove, s->get_width(), s->get_height());
Shape_frame *s = get_shape(*obj); if(!s) {  #if DEBUG cerr << "DEATH! get_shape() returned a NULL pointer: " << __FILE__ << ":" << __LINE__ << endl; cerr << "Betcha it's a little doggie." << endl; #endif return Rectangle(0,0,0,0); } int tx, ty, tz; obj->get_abs_tile(tx, ty, tz); int lftpix = 4*tz; return get_shape_rect(s, (tx + 1 - get_scrolltx())*tilesize - 1 - lftpix, (ty + 1 - get_scrollty())*tilesize - 1 - lftpix);
	Rectangle get_shape_rect(const Shape_frame *s, int x, int y)		{		return Rectangle(x - s->xleft, y - s->yabove,				s->get_width(), s->get_height());		}