History

Stats tweaks: fonts adjustments

Lucas Crisman committed 12 years ago

Commit e545c2a1 parent 5fe59ac3 files · +49 −24Browse files

Showing the changes to interface/src/Application.cpp (1 of 3 files). Show all

Unified · Split

interface/src/Application.cpp+7−1
@@ -591,7 +591,13 @@ void Application::resizeGL(int width, int height) { · 590 unmodified lines
591591 updateProjectionMatrix();
592592 glLoadIdentity();
593593
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);
595601 }
596602
597603 void Application::updateProjectionMatrix() {

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t