Skip to content

Commit f9784a3

Browse files
committed
Update libultraship
1 parent 06d995e commit f9784a3

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

soh/soh/Enhancements/resolution-editor/ResolutionEditor.cpp

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@
44

55
#include <soh/UIWidgets.hpp> // This dependency is why the UI needs to be on SoH's side.
66
#include <graphic/Fast3D/gfx_pc.h>
7-
#include <AdvancedResolution.h>
87

98
namespace AdvancedResolutionSettings {
109
enum setting { UPDATE_aspectRatioX, UPDATE_aspectRatioY, UPDATE_verticalPixelCount, UPDATE_integerScaleFactor };
@@ -78,16 +77,17 @@ void AdvancedResolutionSettingsWindow::DrawElement() {
7877
if (ImGui::Checkbox("Enable \"Advanced Resolution Settings\" settings.", &activateAdvancedMode)) {
7978
CVarSetInteger("gAdvancedResolutionMode", activateAdvancedMode);
8079
}
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
8581
if (IsDroppingFrames()) {
8682
ImGui::TextColored({ 0.85f, 0.85f, 0.0f, 1.0f },
8783
ICON_FA_EXCLAMATION_TRIANGLE " Significant frame rate (FPS) drop detected.");
8884
} else {
8985
ImGui::Text(" ");
9086
}
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);
9191

9292
UIWidgets::PaddedSeparator(true, true, 3.0f, 3.0f);
9393

0 commit comments

Comments
 (0)