| 159 | } |
| 160 | |
| 161 | std::string Tr2MainWindowState::State::ToString() const |
| 162 | { |
| 163 | std::string result = ::ToString( windowMode ) + " on adapter " + std::to_string( (long long)( adapter ) ) + |
| 164 | " " + std::to_string( (long long)( width ) ) + "x" + std::to_string( (long long)( height ) ) + ", present interval " + ::ToString( presentInterval ); |
| 165 | if( windowMode != Tr2WindowMode::FULL_SCREEN ) |
| 166 | { |
| 167 | result += ", position (" + std::to_string( (long long)( left ) ) + ", " + std::to_string( (long long)( top ) ) + "), " + ::ToString( showState ); |
| 168 | } |
| 169 | return result; |
| 170 | } |
| 171 | |
| 172 | bool Tr2MainWindowState::State::RequiresDeviceReset( const State& other ) const |
| 173 | { |