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 b866e52b17)
This commit is contained in:
Patric Stout
2023-12-02 23:12:50 +01:00
committed by Jonathan G Rennison
parent 5322d33ca5
commit 51dbcca9a7
4 changed files with 4 additions and 6 deletions

View File

@@ -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<int>(_bufsize, UINT16_MAX);
try {

View File

@@ -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);