summary |
shortlog |
log |
commit | commitdiff |
tree
raw |
patch |
inline | side by side (from parent 1:
47a6485)
Point min_point(bounding_rect.get_min());
Point max_point(bounding_rect.get_max());
Point min_point(bounding_rect.get_min());
Point max_point(bounding_rect.get_max());
+ // we're going to divide by the different of these pairs soon;
+ // if they're the same, we'll be dividing by zero, and we don't
+ // want to do that!
+ // \todo what should we do in this case?
+ if (min_point[0] == max_point[0] || min_point[1] == max_point[1])
+ {
+ surface->set_wh(renddesc.get_w(),renddesc.get_h());
+ surface->clear();
+ return true;
+ }