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

Method clear

src/Engine/Screen.cpp:217–222  ·  view source on GitHub ↗

* Clears all the contents out of the internal buffer. */

Source from the content-addressed store, hash-verified

215 * Clears all the contents out of the internal buffer.
216 */
217void Screen::clear()
218{
219 _surface->clear();
220 if (_screen->flags & SDL_SWSURFACE) memset(_screen->pixels, 0, _screen->h*_screen->pitch);
221 else SDL_FillRect(_screen, &_clear, 0);
222}
223
224/**
225 * Changes the 8bpp palette used to render the screen's contents.

Callers 15

resetDefaultFunction · 0.45
runMethod · 0.45
loadRulesetMethod · 0.45
getListMethod · 0.45
loadMethod · 0.45
nextStageMethod · 0.45
thinkMethod · 0.45
wayPointActionMethod · 0.45
cacheUnitMethod · 0.45
initMethod · 0.45
saveEquipmentLayoutMethod · 0.45
btnUnloadClickMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected