Changeset - r28222:dc3223583ab4
[Not reviewed]
master
0 4 0
Patric Stout - 12 months ago 2023-12-02 22:12:50
truebrain@openttd.org
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.
4 files changed with 4 insertions and 6 deletions:
0 comments (0 inline, 0 general)
docs/directory_structure.md
Show inline comments
 
@@ -16,20 +16,20 @@ 1. The current working directory (from w
 
    root directory, i.e. '/'.
 

	
 
2. Your personal directory
 
    - Windows:
 
        - `C:\My Documents\OpenTTD` (95, 98, ME)
 
        - `C:\Documents and Settings\<username>\My Documents\OpenTTD` (2000, XP)
 
        - `C:\Users\<username>\Documents\OpenTTD` (Vista, 7, 8.1, 10, 11)
 
        - `C:\Users\<username>\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)
 
    - Windows: `C:\Program Files\OpenTTD`
 
    - Linux: `/usr/games`
 
5. The installation directory (Linux only)
os/windows/openttd.manifest
Show inline comments
 
@@ -12,14 +12,12 @@
 
      <dpiAware xmlns="http://schemas.microsoft.com/SMI/2005/WindowsSettings">True/PM</dpiAware>
 
      <dpiAwareness xmlns="http://schemas.microsoft.com/SMI/2016/WindowsSettings">PerMonitorV2,PerMonitor</dpiAwareness>
 
    </windowsSettings>
 
  </application>
 
  <compatibility xmlns="urn:schemas-microsoft-com:compatibility.v1">
 
    <application>
 
      <!--This Id value indicates the application supports Windows Vista functionality -->
 
      <supportedOS Id="{e2011457-1546-43c5-a5fe-008deee3d3f0}"/>
 
      <!--This Id value indicates the application supports Windows 7 functionality-->
 
      <supportedOS Id="{35138b9a-5d96-4fbd-8e2d-a2440225f93a}"/>
 
      <!--This Id value indicates the application supports Windows 8 functionality-->
 
      <supportedOS Id="{4a2f28e3-53b9-4441-ba9c-d69d4a4a6e38}"/>
 
      <!--This Id value indicates the application supports Windows 8.1 functionality-->
 
      <supportedOS Id="{1f676c76-80e1-4239-95bb-83d0f6d0da78}"/>
src/sound/win32_s.cpp
Show inline comments
 
@@ -67,13 +67,13 @@ const char *SoundDriver_Win32::Start(con
 
	wfex.wBitsPerSample = 16;
 
	wfex.nSamplesPerSec = GetDriverParamInt(parm, "hz", 44100);
 
	wfex.nBlockAlign = (wfex.nChannels * wfex.wBitsPerSample) / 8;
 
	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 {
 
		if (nullptr == (_event = CreateEvent(nullptr, FALSE, FALSE, nullptr))) throw "Failed to create event";
 

	
 
		if (waveOutOpen(&_waveout, WAVE_MAPPER, &wfex, (DWORD_PTR)_event, 0, CALLBACK_EVENT) != MMSYSERR_NOERROR) throw "waveOutOpen failed";
src/video/win32_v.cpp
Show inline comments
 
@@ -1255,13 +1255,13 @@ static const char *SelectPixelFormat(HDC
 
		0, 0,                          // No depth/stencil buffer.
 
		0,                             // No aux buffers.
 
		PFD_MAIN_PLANE,                // Main layer.
 
		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);
 
	if (format == 0) return "No suitable pixel format found";
 
	if (!SetPixelFormat(dc, format, &pfd)) return "Can't set pixel format";
 

	
0 comments (0 inline, 0 general)