MCPcopy Create free account
hub / github.com/OpenXcom/OpenXcom / resize

Method resize

src/Geoscape/SelectDestinationState.cpp:345–355  ·  view source on GitHub ↗

* Updates the scale. * @param dX delta of X; * @param dY delta of Y; */

Source from the content-addressed store, hash-verified

343 * @param dY delta of Y;
344 */
345void 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}

Callers

nothing calls this directly

Calls 4

setXMethod · 0.45
getXMethod · 0.45
setYMethod · 0.45
getYMethod · 0.45

Tested by

no test coverage detected