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

Method getDX

src/Engine/Screen.cpp:566–569  ·  view source on GitHub ↗

* Gets the Horizontal offset from the mid-point of the screen, in pixels. * @return the horizontal offset. */

Source from the content-addressed store, hash-verified

564 * @return the horizontal offset.
565 */
566int Screen::getDX()
567{
568 return (_baseWidth - ORIGINAL_WIDTH) / 2;
569}
570
571/**
572 * Gets the Vertical offset from the mid-point of the screen, in pixels.

Callers 5

centerAllSurfacesMethod · 0.80
MapMethod · 0.80
BuildNewBaseStateMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected