Showing the changes to interface/src/Application.cpp (1 of 3 files). Show all
Unified · Split
| @@ -591,7 +591,13 @@ void Application::resizeGL(int width, int height) { · 590 unmodified lines | |||
| 591 | updateProjectionMatrix(); | 591 | updateProjectionMatrix(); |
| 592 | glLoadIdentity(); | 592 | glLoadIdentity(); |
| 593 | 593 | ||
| 594 | Stats::getInstance()->resetWidthOnResizeGL(width); | 594 | // update Stats width |
| 595 | int horizontalOffset = 0; | ||
| 596 | if (Menu::getInstance()->isOptionChecked(MenuOption::Mirror)) { | ||
| 597 | // mirror is enabled, let's set horizontal offset to give stats some margin | ||
| 598 | horizontalOffset += MIRROR_VIEW_WIDTH + MIRROR_VIEW_LEFT_PADDING * 2; | ||
| 599 | } | ||
| 600 | Stats::getInstance()->resetWidth(width, horizontalOffset); | ||
| 595 | } | 601 | } |
| 596 | 602 | ||
| 597 | void Application::updateProjectionMatrix() { | 603 | void Application::updateProjectionMatrix() { |