MCPcopy Create free account
hub / github.com/OpenFodder/openfodder / clearBuffer

Method clearBuffer

Source/Surface.cpp:316–322  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

314}
315
316void cSurface::clearBuffer(size_t pColor) {
317
318 memset(mSurfaceBuffer, (int) pColor, mSurfaceBufferSize);
319 memset(mSurfaceBufferSaved, (int) pColor, mSurfaceBufferSize);
320
321 clearSDLSurface();
322}
323
324bool cSurface::LoadPng(const std::string& pFile) {
325 int32 width, height, bytesPerPixel;

Callers 15

CycleMethod · 0.80
GUI_Select_FileMethod · 0.80
Map_Overview_PrepareMethod · 0.80
Draw_Phase_PausedMethod · 0.80
Game_SaveMethod · 0.80
Menu_LoopMethod · 0.80
Service_KIA_LoopMethod · 0.80
intro_LegionMessageMethod · 0.80
intro_PlayMethod · 0.80
Mission_Intro_PlayMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected