* Updates the scale. * @param dX delta of X; * @param dY delta of Y; */
| 343 | * @param dY delta of Y; |
| 344 | */ |
| 345 | void SelectDestinationState::resize(int &dX, int &dY) |
| 346 | { |
| 347 | for (std::vector<Surface*>::const_iterator i = _surfaces.begin(); i != _surfaces.end(); ++i) |
| 348 | { |
| 349 | (*i)->setX((*i)->getX() + dX / 2); |
| 350 | if (*i != _window && *i != _btnCancel && *i != _txtTitle && *i != _btnCydonia) |
| 351 | { |
| 352 | (*i)->setY((*i)->getY() + dY / 2); |
| 353 | } |
| 354 | } |
| 355 | } |
| 356 | } |