0x004C5CFA
| 242 | |
| 243 | // 0x004C5CFA |
| 244 | void SoftwareDrawingEngine::render() |
| 245 | { |
| 246 | // Need to first render the current dirty regions before updating the viewports. |
| 247 | // This is needed to ensure it will copy the correct pixels when the viewport will be moved. |
| 248 | renderDirtyRegions(); |
| 249 | |
| 250 | // Updating the viewports will potentially move pixels and mark previously invisible regions as dirty. |
| 251 | WindowManager::updateViewports(); |
| 252 | |
| 253 | // Render the uncovered regions. |
| 254 | renderDirtyRegions(); |
| 255 | |
| 256 | // Draw FPS counter. |
| 257 | if (Config::get().showFPS) |
| 258 | { |
| 259 | Gfx::drawFPS(_ctx); |
| 260 | } |
| 261 | } |
| 262 | |
| 263 | void SoftwareDrawingEngine::renderDirtyRegions() |
| 264 | { |
no test coverage detected