From 51dbcca9a7927d5279dc69658eba865935ab677c Mon Sep 17 00:00:00 2001 From: Patric Stout Date: Sat, 2 Dec 2023 23:12:50 +0100 Subject: [PATCH] Remove: officially mark Vista as no longer supported (#11531) It is very likely Vista hasn't been working for years, but the amount of users that use an OS that has been EoL for over 11 years is very small, so reports happen rarely. (cherry picked from commit b866e52b17270bdc197077418b432d65c625a013) --- docs/directory_structure.md | 4 ++-- os/windows/openttd.manifest | 2 -- src/sound/win32_s.cpp | 2 +- src/video/win32_v.cpp | 2 +- 4 files changed, 4 insertions(+), 6 deletions(-) diff --git a/docs/directory_structure.md b/docs/directory_structure.md index c8b5c6a9d4..72a62eee42 100644 --- a/docs/directory_structure.md +++ b/docs/directory_structure.md @@ -19,14 +19,14 @@ your operating system: - Windows: - `C:\My Documents\OpenTTD` (95, 98, ME) - `C:\Documents and Settings\\My Documents\OpenTTD` (2000, XP) - - `C:\Users\\Documents\OpenTTD` (Vista, 7, 8.1, 10, 11) + - `C:\Users\\Documents\OpenTTD` (7, 8.1, 10, 11) - macOS: `~/Documents/OpenTTD` - Linux: `$XDG_DATA_HOME/openttd` which is usually `~/.local/share/openttd` when built with XDG base directory support, otherwise `~/.openttd` 3. The shared directory - Windows: - `C:\Documents and Settings\All Users\Shared Documents\OpenTTD` (2000, XP) - - `C:\Users\Public\Documents\OpenTTD` (Vista, 7, 8.1, 10, 11) + - `C:\Users\Public\Documents\OpenTTD` (7, 8.1, 10, 11) - macOS: `/Library/Application Support/OpenTTD` - Linux: not available 4. The binary directory (where the OpenTTD executable is) diff --git a/os/windows/openttd.manifest b/os/windows/openttd.manifest index cb536a819d..21fee42174 100644 --- a/os/windows/openttd.manifest +++ b/os/windows/openttd.manifest @@ -15,8 +15,6 @@ - - diff --git a/src/sound/win32_s.cpp b/src/sound/win32_s.cpp index b7220b7786..f50346e88c 100644 --- a/src/sound/win32_s.cpp +++ b/src/sound/win32_s.cpp @@ -70,7 +70,7 @@ const char *SoundDriver_Win32::Start(const StringList &parm) wfex.nAvgBytesPerSec = wfex.nSamplesPerSec * wfex.nBlockAlign; /* Limit buffer size to prevent overflows. */ - _bufsize = GetDriverParamInt(parm, "bufsize", IsWindowsVistaOrGreater() ? 8192 : 4096); + _bufsize = GetDriverParamInt(parm, "bufsize", 8192); _bufsize = std::min(_bufsize, UINT16_MAX); try { diff --git a/src/video/win32_v.cpp b/src/video/win32_v.cpp index c94e7b4145..60755944e1 100644 --- a/src/video/win32_v.cpp +++ b/src/video/win32_v.cpp @@ -1266,7 +1266,7 @@ static const char *SelectPixelFormat(HDC dc) 0, 0, 0, 0 // Ignored/reserved. }; - if (IsWindowsVistaOrGreater()) pfd.dwFlags |= PFD_SUPPORT_COMPOSITION; // Make OpenTTD compatible with Aero. + pfd.dwFlags |= PFD_SUPPORT_COMPOSITION; // Make OpenTTD compatible with Aero. /* Choose a suitable pixel format. */ int format = ChoosePixelFormat(dc, &pfd);