mirror of
https://github.com/hrydgard/ppsspp.git
synced 2026-10-01 14:58:14 +00:00
Default to Vulkan on Win10+ (previously Win11+). Set UI scaling default to -1 on all desktops.
This commit is contained in:
1 parent
610013e684
commit
a0fef38f69
3 files changed
+8
-3
No files matched your search
@@ -109,6 +109,10 @@ bool IsWin8OrHigher() {
|
||||
return DoesVersionMatchWindows(6, 2, 0, 0, 0, true);
|
||||
}
|
||||
|
||||
bool IsWin10OrHigher() {
|
||||
return DoesVersionMatchWindows(10, 0, 0, 0, 0, true);
|
||||
}
|
||||
|
||||
bool IsWin11OrHigher() {
|
||||
return DoesVersionMatchWindows(10, 0, 0, 0, 22000, true);
|
||||
}
|
||||
|
||||
@@ -8,6 +8,7 @@
|
||||
bool IsVistaOrHigher();
|
||||
bool IsWin7OrHigher();
|
||||
bool IsWin8OrHigher();
|
||||
bool IsWin10OrHigher();
|
||||
bool IsWin11OrHigher();
|
||||
bool DoesVersionMatchWindows(uint32_t major, uint32_t minor, uint32_t spMajor, uint32_t spMinor, uint32_t build, bool acceptGreater);
|
||||
bool GetVersionFromKernel32(uint32_t& major, uint32_t& minor, uint32_t& build);
|
||||
|
||||
+3
-3
@@ -211,7 +211,7 @@ static float DefaultUISaturation() {
|
||||
}
|
||||
|
||||
static int DefaultUIScaleFactor() {
|
||||
#if PPSSPP_PLATFORM(WINDOWS)
|
||||
#if PPSSPP_PLATFORM(WINDOWS) || PPSSPP_PLATFORM(LINUX) || PPSSPP_PLATFORM(MAC)
|
||||
return -1;
|
||||
#else
|
||||
return 0;
|
||||
@@ -456,8 +456,8 @@ static int DefaultGPUBackend() {
|
||||
}
|
||||
|
||||
#if PPSSPP_PLATFORM(WINDOWS)
|
||||
// On Win11, there's a good chance Vulkan will work by default.
|
||||
if (IsWin11OrHigher()) {
|
||||
// On Win10, there's a good chance Vulkan will work by default.
|
||||
if (IsWin10OrHigher()) {
|
||||
return (int)GPUBackend::VULKAN;
|
||||
}
|
||||
// On older Windows, to be safe, use Direct3D 11.
|
||||
|
||||
Reference in new issue
Block a user