right = std::min(w,right);
*/
- Surface::alpha_pen pen;
-
- // In the case where there is nothing to render...
- if (right < left || bottom < top)
- return true;
-
// optimisation - if the whole tile is covered by this rectangle,
// and the rectangle is a solid colour, we don't need to render
// what's behind us
return false;
}
+ // In the case where there is nothing to render...
+ if (right < left || bottom < top)
+ return true;
+
+ Surface::alpha_pen pen;
+
if(right-left>0&&bottom-top>0)
{
if(is_solid_color())