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

Method getSurfaceSize

Source/Fodder.cpp:3546–3555  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

3544}
3545
3546cDimension cFodder::getSurfaceSize() const {
3547 if (!mParams->mWindowColumns || !mParams->mWindowRows) {
3548 if (mVersionCurrent)
3549 return mVersionCurrent->GetScreenSize();
3550
3551 return { 352, 364 };
3552 }
3553
3554 return { (unsigned int)(mParams->mWindowColumns + 2) * 16, (unsigned int)(mParams->mWindowRows + 2) * 16 };
3555}
3556
3557cDimension cFodder::getWindowSize() const {
3558

Callers

nothing calls this directly

Calls 1

GetScreenSizeMethod · 0.45

Tested by

no test coverage detected