|
@@ -207,9 +207,7 @@ const char* TranslateCategory(Category category) {
|
|
|
return "Miscellaneous";
|
|
return "Miscellaneous";
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
-void UpdateRescalingInfo() {
|
|
|
|
|
- const auto setup = values.resolution_setup.GetValue();
|
|
|
|
|
- auto& info = values.resolution_info;
|
|
|
|
|
|
|
+void TranslateResolutionInfo(ResolutionSetup setup, ResolutionScalingInfo& info) {
|
|
|
info.downscale = false;
|
|
info.downscale = false;
|
|
|
switch (setup) {
|
|
switch (setup) {
|
|
|
case ResolutionSetup::Res1_2X:
|
|
case ResolutionSetup::Res1_2X:
|
|
@@ -269,6 +267,12 @@ void UpdateRescalingInfo() {
|
|
|
info.active = info.up_scale != 1 || info.down_shift != 0;
|
|
info.active = info.up_scale != 1 || info.down_shift != 0;
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
|
|
+void UpdateRescalingInfo() {
|
|
|
|
|
+ const auto setup = values.resolution_setup.GetValue();
|
|
|
|
|
+ auto& info = values.resolution_info;
|
|
|
|
|
+ TranslateResolutionInfo(setup, info);
|
|
|
|
|
+}
|
|
|
|
|
+
|
|
|
void RestoreGlobalState(bool is_powered_on) {
|
|
void RestoreGlobalState(bool is_powered_on) {
|
|
|
// If a game is running, DO NOT restore the global settings state
|
|
// If a game is running, DO NOT restore the global settings state
|
|
|
if (is_powered_on) {
|
|
if (is_powered_on) {
|