mirror of
https://github.com/hrydgard/ppsspp.git
synced 2026-10-01 14:58:14 +00:00
Misc portrait layout fixes, minor build.gradle.kts change
This commit is contained in:
1 parent
0990890640
commit
094d28d451
5 files changed
+9
-6
No files matched your search
@@ -1,10 +1,6 @@
|
||||
#include "UI/BaseScreens.h"
|
||||
#include "Core/Config.h"
|
||||
|
||||
ViewLayoutMode UIBaseScreen::LayoutMode() const {
|
||||
return ViewLayoutMode::IgnoreBottomInset;
|
||||
}
|
||||
|
||||
bool UIBaseScreen::UseImmersiveMode() const {
|
||||
DisplayLayoutConfig &config = g_Config.GetDisplayLayoutConfig(GetDeviceOrientation());
|
||||
bool portrait = GetDeviceOrientation() == DeviceOrientation::Portrait;
|
||||
|
||||
+3
-1
@@ -8,7 +8,9 @@
|
||||
class UIBaseScreen : public UIScreen {
|
||||
public:
|
||||
UIBaseScreen() : UIScreen() {}
|
||||
ViewLayoutMode LayoutMode() const override;
|
||||
ViewLayoutMode LayoutMode() const override {
|
||||
return ViewLayoutMode::IgnoreBottomInset;
|
||||
}
|
||||
bool UseImmersiveMode() const override;
|
||||
protected:
|
||||
void sendMessage(UIMessage message, const char *value) override;
|
||||
|
||||
@@ -95,6 +95,10 @@ public:
|
||||
void dialogFinished(const Screen *dialog, DialogResult result) override;
|
||||
void sendMessage(UIMessage message, const char *value) override;
|
||||
|
||||
ViewLayoutMode LayoutMode() const override {
|
||||
return ViewLayoutMode::ApplyInsets;
|
||||
}
|
||||
|
||||
const char *tag() const override { return "Savedata"; }
|
||||
|
||||
protected:
|
||||
|
||||
@@ -46,7 +46,7 @@ void UISimpleBaseDialogScreen::CreateViews() {
|
||||
ViewLayoutMode UITwoPaneBaseDialogScreen::LayoutMode() const {
|
||||
const bool portrait = GetDeviceOrientation() == DeviceOrientation::Portrait;
|
||||
if (portrait) {
|
||||
if (((flags_ & TwoPaneFlags::SettingsCanScroll) && !(flags_ & TwoPaneFlags::SettingsToTheRight)) || (flags_ & TwoPaneFlags::ContentsCanScroll)) {
|
||||
if ((flags_ & TwoPaneFlags::SettingsCanScroll) && !(flags_ & TwoPaneFlags::SettingsToTheRight)) {
|
||||
return ViewLayoutMode::IgnoreBottomInset;
|
||||
} else {
|
||||
return ViewLayoutMode::ApplyInsets;
|
||||
|
||||
@@ -149,6 +149,7 @@ android {
|
||||
getByName("release") {
|
||||
isMinifyEnabled = false
|
||||
if (project.hasProperty("RELEASE_STORE_FILE")) {
|
||||
println("RELEASE_STORE_FILE is set. Using as signing config.")
|
||||
signingConfig = signingConfigs.getByName("release")
|
||||
} else {
|
||||
println("WARNING: RELEASE_STORE_FILE is missing. Release builds will be unusable.")
|
||||
|
||||
Reference in new issue
Block a user