| 513 | } |
| 514 | |
| 515 | void 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 | |
| 533 | cPosition cWindow::GetWindowPosition() const { |
| 534 | cPosition Pos; |