Alexandre Julliard pushed to branch master at wine / wine
Commits: 00c41cf5 by Elizabeth Figura at 2025-10-06T18:54:01+02:00 ddraw/tests: Fix some tests on modern Windows.
Fixes: 9fc3862dd4a09a8a457c1c449380e1e122228221
- - - - - 6119d69c by Elizabeth Figura at 2025-10-06T18:54:29+02:00 ddraw/tests: Expand and fix tests for EnumDevices().
Test various things which some applications are sensitive to: device names, enumeration order, specific caps. Also show that HAL caps for non-HAL devices and HEL caps for HAL devices are nearly empty.
Most of these tests already pass on real Windows 98, but one modification was necessary to remove a positive test for HWTRANSFORMANDLIGHT from d3d1-4 devices, which real cards don't always expose.
- - - - - 440797bf by Elizabeth Figura at 2025-10-06T18:54:33+02:00 ddraw: Expose the RGB device for version 1.
Based on a patch by Andrew D'Addesio.
The comment dates back to a872c781ea9908bd549b59629585e4fd23ef2211, but at that time it referred to the reference device. This was changed to the RGB device by d9fef10b71b9add27cfaeffa6d7e3ab42342bba7.
The reference device is not enumerated by default even on Windows 98, as the neighbouring comment explains. It would make sense if the affected games do not function with the reference device, but are fine with the RGB device. It's not clear whether this is the case, though. According to Andrew D'Addesio in bug 19153, Motoracer 2 does not break even if the reference device is enumerated (so possibly the bug has to do with some other part of the caps later changed). As for AvP, I was unable to locate a copy of the game to test.
- - - - - 7a98339d by Elizabeth Figura at 2025-10-06T18:54:38+02:00 ddraw: Reorder ddraw7 enumeration.
Based on a patch by Andrew D'Addesio.
- - - - - 2f561b97 by Elizabeth Figura at 2025-10-06T18:54:40+02:00 ddraw: Rename the RGB device to "RGB Emulation".
Based on a patch by Andrew D'Addesio.
Wine-Bug: https://bugs.winehq.org/show_bug.cgi?id=19153
- - - - - 648cb489 by Elizabeth Figura at 2025-10-06T18:54:43+02:00 ddraw: Fix the size for d3d1 and d3d2 EnumDevices().
Based on a patch by Andrew D'Addesio.
- - - - -
5 changed files:
- dlls/ddraw/ddraw.c - dlls/ddraw/tests/ddraw1.c - dlls/ddraw/tests/ddraw2.c - dlls/ddraw/tests/ddraw4.c - dlls/ddraw/tests/ddraw7.c
View it on GitLab: https://gitlab.winehq.org/wine/wine/-/compare/622da47590fd58091ad01c3100a39f...