gxt key, default value

This commit is contained in:
Fire-Head 2020-12-29 22:16:52 +03:00
parent 30236a804d
commit 8fadca196b
2 changed files with 13 additions and 7 deletions

View File

@ -142,7 +142,7 @@ int8 CMenuManager::m_nDisplayMSAALevel = 0;
#endif #endif
#ifdef ASPECT_RATIO_SCALE #ifdef ASPECT_RATIO_SCALE
int32 CMenuManager::m_PrefsSpriteScalingMode = 0; int32 CMenuManager::m_PrefsSpriteScalingMode = SCL_AUTO;
#endif #endif
#ifdef NO_ISLAND_LOADING #ifdef NO_ISLAND_LOADING
@ -1463,27 +1463,34 @@ CMenuManager::Draw()
#else #else
switch (m_PrefsUseWideScreen) { switch (m_PrefsUseWideScreen) {
case AR_AUTO: case AR_AUTO:
sprintf(asciiTemp, "AUTO"); rightText = TheText.Get("FEM_AUT");
break; break;
case AR_4_3: case AR_4_3:
sprintf(asciiTemp, "4:3"); sprintf(asciiTemp, "4:3");
AsciiToUnicode(asciiTemp, unicodeTemp);
rightText = unicodeTemp;
break; break;
case AR_5_4: case AR_5_4:
sprintf(asciiTemp, "5:4"); sprintf(asciiTemp, "5:4");
AsciiToUnicode(asciiTemp, unicodeTemp);
rightText = unicodeTemp;
break; break;
case AR_16_10: case AR_16_10:
sprintf(asciiTemp, "16:10"); sprintf(asciiTemp, "16:10");
AsciiToUnicode(asciiTemp, unicodeTemp);
rightText = unicodeTemp;
break; break;
case AR_16_9: case AR_16_9:
sprintf(asciiTemp, "16:9"); sprintf(asciiTemp, "16:9");
AsciiToUnicode(asciiTemp, unicodeTemp);
rightText = unicodeTemp;
break; break;
case AR_21_9: case AR_21_9:
sprintf(asciiTemp, "21:9"); sprintf(asciiTemp, "21:9");
break;
}
AsciiToUnicode(asciiTemp, unicodeTemp); AsciiToUnicode(asciiTemp, unicodeTemp);
rightText = unicodeTemp; rightText = unicodeTemp;
break;
}
#endif #endif
break; break;
case MENUACTION_RADIO: case MENUACTION_RADIO:

View File

@ -4,14 +4,13 @@ enum eAspectRatio
{ {
// Make sure these work the same as FrontEndMenuManager.m_PrefsUseWideScreen // Make sure these work the same as FrontEndMenuManager.m_PrefsUseWideScreen
// without widescreen support // without widescreen support
AR_AUTO,
AR_4_3, AR_4_3,
AR_5_4, AR_5_4,
AR_16_10, AR_16_10,
AR_16_9, AR_16_9,
AR_21_9, AR_21_9,
AR_AUTO,
AR_MAX, AR_MAX,
}; };