@@ -27,6 +27,7 @@ void AdvancedResolutionSettingsWindow::InitElement() {
2727}
2828
2929void AdvancedResolutionSettingsWindow::DrawElement () {
30+ #ifndef __APPLE__
3031 ImGui::SetNextWindowSize (ImVec2 (360 , 512 ), ImGuiCond_FirstUseEver);
3132 if (ImGui::Begin (" Advanced Resolution Settings" , &mIsVisible )) {
3233 bool update[sizeof (setting)];
@@ -119,14 +120,16 @@ void AdvancedResolutionSettingsWindow::DrawElement() {
119120 }
120121
121122 if (default_maxIntegerScaleFactor < integerScale_maximumBounds) {
122- max_integerScaleFactor = integerScale_maximumBounds + 1 ; // allows people do things like cropped 5x scaling at 1080p
123+ max_integerScaleFactor = integerScale_maximumBounds + 1 ; // the +1 allows people do things like cropped 5x scaling at 1080p
123124 }
124125 // else max_integerScaleFactor = default_maxIntegerScaleFactor; // this statement is not needed if not using a static variable
125126
126127 // Integer Scaling
127128 UIWidgets::EnhancementSliderInt (" Integer scale factor: %d" , " ##ARSIntScale" ,
128129 " gAdvancedResolution_IntegerScaleFactor" , 1 , max_integerScaleFactor, " %d" , 1 ,
129- true , !CVarGetInteger (" gAdvancedResolution_PixelPerfectMode" ,0 ));
130+ true ,
131+ !CVarGetInteger (" gAdvancedResolution_PixelPerfectMode" , 0 ) ||
132+ CVarGetInteger (" gAdvancedResolution_IntegerScale_FitAutomatically" , 0 ));
130133 UIWidgets::Tooltip (" Integer scales the image. Only available in pixel-perfect mode." );
131134
132135 UIWidgets::PaddedEnhancementCheckbox (" Automatically scale image to fit viewport." ,
@@ -144,6 +147,7 @@ void AdvancedResolutionSettingsWindow::DrawElement() {
144147 if (update[UPDATE_verticalPixelCount]) { CVarSetInteger (" gAdvancedResolution_verticalPixelCount" , (int32_t )verticalPixelCount); }
145148 }
146149 ImGui::End ();
150+ #endif
147151}
148152
149153void AdvancedResolutionSettingsWindow::UpdateElement () {
0 commit comments