settings.cpp

This commit is contained in:
yogiags86 2024-01-26 09:22:46 +07:00 committed by GitHub
parent f2753d07ad
commit b788ff51f1
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -255,6 +255,11 @@ const char* TranslateCategory(Category category) {
void TranslateResolutionInfo(ResolutionSetup setup, ResolutionScalingInfo& info) {
info.downscale = false;
switch (setup) {
case ResolutionSetup::Res1_4X:
info.up_scale = 1;
info.down_shift = 2;
info.downscale = true;
break;
case ResolutionSetup::Res1_2X:
info.up_scale = 1;
info.down_shift = 1;