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

Method getWindowSize

Source/Fodder.cpp:3557–3567  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

3555}
3556
3557cDimension cFodder::getWindowSize() const {
3558
3559 if (!mParams->mWindowColumns || !mParams->mWindowRows) {
3560 if (mVersionCurrent)
3561 return mVersionCurrent->GetScreenSize();
3562
3563 return { 336, 348 };
3564 }
3565
3566 return { (unsigned int) mParams->mWindowColumns * 16, (unsigned int) mParams->mWindowRows * 16 };
3567}
3568
3569int16 cFodder::getWindowRows() const {
3570 if (!mParams->mWindowRows) {

Callers

nothing calls this directly

Calls 1

GetScreenSizeMethod · 0.45

Tested by

no test coverage detected