Simplified sphere drawing code by removing the rect_t struct