diff --git a/pmc/rectangle.cc b/pmc/rectangle.cc --- a/pmc/rectangle.cc +++ b/pmc/rectangle.cc @@ -63,9 +63,9 @@ if ((anker.Y () + location.Y ()) < 0) return; - if ((anker.X () + location.X ()) >= surface->getWidth ()) + if ((anker.X () + location.X ()) > surface->getWidth ()) return; - if ((anker.Y () + location.Y ()) >= surface->getHeight ()) + if ((anker.Y () + location.Y ()) > surface->getHeight ()) return; for (int i = 0; i < 4; i++) {