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

Method CanChangeToMultiplier

Source/Window.cpp:307–317  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

305}
306
307bool cWindow::CanChangeToMultiplier( const int pNewMultiplier ) {
308 SDL_DisplayMode current;
309 SDL_GetCurrentDisplayMode(0, &current);
310
311 if ( (mOriginalResolution.getWidth() * pNewMultiplier >= current.w ||
312 mOriginalResolution.getHeight() * pNewMultiplier >= current.h) ||
313 pNewMultiplier <= 0 )
314 return false;
315
316 return true;
317}
318
319void cWindow::FrameEnd() {
320

Callers

nothing calls this directly

Calls 2

getWidthMethod · 0.45
getHeightMethod · 0.45

Tested by

no test coverage detected