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

Method Screen

src/Engine/Screen.cpp:110–114  ·  view source on GitHub ↗

* Initializes a new display screen for the game to render contents to. * The screen is set up based on the current options. */

Source from the content-addressed store, hash-verified

108 * The screen is set up based on the current options.
109 */
110Screen::Screen() : _baseWidth(ORIGINAL_WIDTH), _baseHeight(ORIGINAL_HEIGHT), _scaleX(1.0), _scaleY(1.0), _numColors(0), _firstColor(0), _pushPalette(false), _surface(0)
111{
112 resetDisplay();
113 memset(deferredPalette, 0, 256*sizeof(SDL_Color));
114}
115
116/**
117 * Deletes the buffer from memory. The display screen itself

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected