equal
deleted
inserted
replaced
61 if ((anker.X () + location.X ()) < 0) |
61 if ((anker.X () + location.X ()) < 0) |
62 return; |
62 return; |
63 if ((anker.Y () + location.Y ()) < 0) |
63 if ((anker.Y () + location.Y ()) < 0) |
64 return; |
64 return; |
65 |
65 |
66 if ((anker.X () + location.X ()) >= surface->getWidth ()) |
66 if ((anker.X () + location.X ()) > surface->getWidth ()) |
67 return; |
67 return; |
68 if ((anker.Y () + location.Y ()) >= surface->getHeight ()) |
68 if ((anker.Y () + location.Y ()) > surface->getHeight ()) |
69 return; |
69 return; |
70 |
70 |
71 for (int i = 0; i < 4; i++) { |
71 for (int i = 0; i < 4; i++) { |
72 *P[i] = *P[i] + location; |
72 *P[i] = *P[i] + location; |
73 } |
73 } |