Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feat: ✨ Fit with notch preset #248

Merged
merged 2 commits into from
Aug 25, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
2 changes: 2 additions & 0 deletions PlayCover/Utils/ScreenSizeSelector.swift
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,8 @@ func getScreenSizeSelector(_ height: Float) -> Int? {
return 4
case 844: // Vertical screen
return 5
case 1000:
return 6
default:
return nil
}
Expand Down
3 changes: 3 additions & 0 deletions PlayCover/Utils/SetScreenSize.swift
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,9 @@ func setScreenSize(tag: Int, settings: AppSettings) {
case 5:
settings.gameWindowSizeHeight = 844
settings.gameWindowSizeWidth = 390
case 6:
settings.gameWindowSizeHeight = 1000
settings.gameWindowSizeWidth = 1600
default:
return
}
Expand Down
1 change: 1 addition & 0 deletions PlayCover/View/AppSettingsView.swift
Original file line number Diff line number Diff line change
Expand Up @@ -151,6 +151,7 @@ struct AppSettingsView: View {
Text("1080p").tag(1)
Text("1440p").tag(2)
Text("4K").tag(3)
Text("Fit with notch").tag(6)
})
.pickerStyle(MenuPickerStyle())
.frame(maxWidth: 300)
Expand Down