diff options
Diffstat (limited to 'native')
-rw-r--r-- | native/android/configuration.cpp | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/native/android/configuration.cpp b/native/android/configuration.cpp index 74cf80e..77237ae 100644 --- a/native/android/configuration.cpp +++ b/native/android/configuration.cpp @@ -101,6 +101,10 @@ int32_t AConfiguration_getScreenLong(AConfiguration* config) { >> ResTable_config::SHIFT_SCREENLONG; } +int32_t AConfiguration_getScreenRound(AConfiguration* config) { + return (config->screenLayout2&ResTable_config::MASK_SCREENROUND); +} + int32_t AConfiguration_getUiModeType(AConfiguration* config) { return config->uiMode&ResTable_config::MASK_UI_MODE_TYPE; } @@ -192,6 +196,11 @@ void AConfiguration_setScreenLong(AConfiguration* config, int32_t screenLong) { | ((screenLong<<ResTable_config::SHIFT_SCREENLONG)&ResTable_config::MASK_SCREENLONG); } +void AConfiguration_setScreenRound(AConfiguration* config, int32_t screenRound) { + config->screenLayout2 = (config->screenLayout2&~ResTable_config::MASK_SCREENROUND) + | (screenRound&ResTable_config::MASK_SCREENROUND); +} + void AConfiguration_setUiModeType(AConfiguration* config, int32_t uiModeType) { config->uiMode = (config->uiMode&~ResTable_config::MASK_UI_MODE_TYPE) | (uiModeType&ResTable_config::MASK_UI_MODE_TYPE); |