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

Method setWidth

src/Engine/Surface.cpp:894–898  ·  view source on GitHub ↗

* Changes the width of the surface. * @warning This is not a trivial setter! * It will force the surface to be recreated for the new size. * @param width New width in pixels. */

Source from the content-addressed store, hash-verified

892 * @param width New width in pixels.
893 */
894void Surface::setWidth(int width)
895{
896 resize(width, getHeight());
897 _redraw = true;
898}
899
900/**
901 * Changes the height of the surface.

Callers 1

resizeMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected