Attempt at implementing d_render_rect_get