Default to Vulkan on Win10+ (previously Win11+). Set UI scaling default to -1 on all desktops.

This commit is contained in:
Henrik Rydgård committed 2025-07-20 19:05:38 +02:00
1 parent 610013e684
commit a0fef38f69
3 files changed
+8 -3

No files matched your search

+4
View File
@@ -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);
}
+1
View File
@@ -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
View File
@@ -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.