|
4 | 4 |
|
5 | 5 | #include <soh/UIWidgets.hpp> // This dependency is why the UI needs to be on SoH's side. |
6 | 6 | #include <graphic/Fast3D/gfx_pc.h> |
7 | | -#include <AdvancedResolution.h> |
8 | 7 |
|
9 | 8 | namespace AdvancedResolutionSettings { |
10 | 9 | enum setting { UPDATE_aspectRatioX, UPDATE_aspectRatioY, UPDATE_verticalPixelCount, UPDATE_integerScaleFactor }; |
@@ -78,16 +77,17 @@ void AdvancedResolutionSettingsWindow::DrawElement() { |
78 | 77 | if (ImGui::Checkbox("Enable \"Advanced Resolution Settings\" settings.", &activateAdvancedMode)) { |
79 | 78 | CVarSetInteger("gAdvancedResolutionMode", activateAdvancedMode); |
80 | 79 | } |
81 | | - // Resolution visualiser |
82 | | - ImGui::Text("Viewport dimensions: %d by %d", gfx_current_game_window_viewport.width, |
83 | | - gfx_current_game_window_viewport.height); |
84 | | - ImGui::Text("Internal resolution: %d by %d", gfx_current_dimensions.width, gfx_current_dimensions.height); |
| 80 | + // Error/Warning display |
85 | 81 | if (IsDroppingFrames()) { |
86 | 82 | ImGui::TextColored({ 0.85f, 0.85f, 0.0f, 1.0f }, |
87 | 83 | ICON_FA_EXCLAMATION_TRIANGLE " Significant frame rate (FPS) drop detected."); |
88 | 84 | } else { |
89 | 85 | ImGui::Text(" "); |
90 | 86 | } |
| 87 | + // Resolution visualiser |
| 88 | + ImGui::Text("Viewport dimensions: %d by %d", gfx_current_game_window_viewport.width, |
| 89 | + gfx_current_game_window_viewport.height); |
| 90 | + ImGui::Text("Internal resolution: %d by %d", gfx_current_dimensions.width, gfx_current_dimensions.height); |
91 | 91 |
|
92 | 92 | UIWidgets::PaddedSeparator(true, true, 3.0f, 3.0f); |
93 | 93 |
|
|
0 commit comments