void BBWin8Game::ValidateOrientation(){ int devrot=DeviceRotation(); if( CFG_WIN8_SCREEN_ORIENTATION & (1<<DeviceOrientation()) ) _deviceRotation=devrot; #if WINDOWS_8 _inputRotation=(4-devrot+_deviceRotation)&3; if( _swapChain ) _swapChain->SetRotation( SwapChainRotation() ); Windows::UI::Core::CoreWindowResizeManager::GetForCurrentView()->NotifyLayoutCompleted(); #elif WINDOWS_PHONE_8 _inputRotation=_deviceRotation; #endif }