MCPcopy Create free account
hub / github.com/SimHacker/micropolis / InitScreen

Method InitScreen

MicropolisCore/src/CellEngine/src/cellengine.cpp:425–439  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

423
424
425void CellEngine::InitScreen(
426 long ww,
427 long hh)
428{
429 if (screenMem != NULL) {
430 delete [] screenMem;
431 }
432
433 screenWidth = ww;
434 screenHeight = hh;
435 screenRowBytes = (ww + 3) & ~3;
436 screenMem = new Byte[screenRowBytes * screenHeight];
437
438 SetPos(0, 0);
439}
440
441
442void CellEngine::SetRect(

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected