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

Method SetWindowSize

Source/Window.cpp:515–531  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

513}
514
515void cWindow::SetWindowSize( const int pMultiplier ) {
516
517 if (pMultiplier < 1 )
518 return;
519
520 mScaler = pMultiplier;
521
522 if (mWindow) {
523 if (mWindowMode) {
524 SDL_SetWindowFullscreen( mWindow, 0 );
525 }
526 SDL_SetWindowSize( mWindow, GetWindowSize().mWidth, GetWindowSize().mHeight );
527 PositionWindow();
528
529 mResized = true;
530 }
531}
532
533cPosition cWindow::GetWindowPosition() const {
534 cPosition Pos;

Callers 1

PrepareMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected