///////////////////////////////////////////////////////
| 210 | |
| 211 | //////////////////////////////////////////////////////////// |
| 212 | void Window::initialize() |
| 213 | { |
| 214 | // Setup default behaviors (to get a consistent behavior across different implementations) |
| 215 | setVerticalSyncEnabled(false); |
| 216 | setFramerateLimit(0); |
| 217 | |
| 218 | // Reset frame time |
| 219 | m_clock.restart(); |
| 220 | |
| 221 | // Activate the window |
| 222 | if (!setActive()) |
| 223 | { |
| 224 | err() << "Failed to set window as active during initialization" << std::endl; |
| 225 | } |
| 226 | |
| 227 | WindowBase::initialize(); |
| 228 | } |
| 229 | |
| 230 | } // namespace sf |
no test coverage detected