Skip to content

Commit

Permalink
fix crash when opening advanced resolution options
Browse files Browse the repository at this point in the history
  • Loading branch information
serprex committed Jan 19, 2025
1 parent ed674f1 commit 2915dd4
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions soh/soh/Enhancements/resolution-editor/ResolutionEditor.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -168,6 +168,7 @@ void AdvancedResolutionSettingsWindow::DrawElement() {
UIWidgets::PaddedSeparator(true, true, 3.0f, 3.0f);
if (disabled_everything) { // Hide aspect ratio controls.
UIWidgets::DisableComponent(ImGui::GetStyle().Alpha * 0.5f);
UIWidgets::ReEnableComponent("disabledTooltipText");
}

// Aspect Ratio
Expand Down Expand Up @@ -210,9 +211,6 @@ void AdvancedResolutionSettingsWindow::DrawElement() {
}
}

if (disabled_everything) { // Hide aspect ratio controls.
UIWidgets::ReEnableComponent("disabledTooltipText");
}
UIWidgets::Spacer(0);

// Vertical Resolution
Expand Down

0 comments on commit 2915dd4

Please sign in to comment.