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

Method Window_UpdateScreenSize

Source/Fodder.cpp:18760–18786  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

18758}
18759
18760void cFodder::Window_UpdateScreenSize() {
18761
18762 // We can override the window
18763 mWindow->SetScreenSize(getWindowSize());
18764 mWindow->SetOriginalRes(getWindowSize());
18765
18766
18767 // This next section is done
18768 //
18769 // If we're playing back a demo
18770 if (mParams->mDemoPlayback && g_Fodder->mVersionCurrent) {
18771 // And the current platform, does not match the platform the demo was recorded with
18772 if (mGame_Data.mDemoRecorded.mRecordedPlatform != mVersionCurrent->mPlatform && mGame_Data.mDemoRecorded.mRecordedPlatform != ePlatform::Any ) {
18773 // Alter the screen size, to the other platforms
18774 switch (mGame_Data.mDemoRecorded.mRecordedPlatform) {
18775 case ePlatform::Amiga: // Viewing Amiga recording on PC Data
18776 mWindow->SetScreenSize({ 320,225 });
18777 break;
18778 case ePlatform::PC: // Viewing PC recording on Amiga Data
18779 mWindow->SetScreenSize({ 320,200 });
18780 break;
18781 case ePlatform::Any:
18782 break;
18783 }
18784 }
18785 }
18786}
18787
18788void cFodder::About() {
18789

Callers

nothing calls this directly

Calls 2

SetScreenSizeMethod · 0.80
SetOriginalResMethod · 0.80

Tested by

no test coverage detected