On Thu Mar 7 11:08:14 2024 +0000, Zebediah Figura wrote:
As for automatically changing the status, SM_MEDIACENTER would require
Windows version checks (which are never used in Wine) If SM_MEDIACENTER is fundamentally a version check, I don't see why that would be the wrong thing to do here?
SM_TABLETPC would likely require touchscreen/tablet detection (rbernon
is working on some touch stuff so that could be useful) Having a tablet attached isn't the same thing as being a tablet, though.
case SM_TABLETPC: case SM_MEDIACENTER: - return 0; + return (index == SM_TABLETPC) ? enable_tabletpc : enable_mediacenter;
Why not just make these two separate cases?
TestBot testing reveals that SM_MEDIACENTER is also set to 1 on Windows Vista and 7 (which both have Media Center included in the pricier editions) but not Windows 8 and later (which don't have it by default): https://testbot.winehq.org/JobDetails.pl?Key=143821
So I guess Windows is checking the Media Center installation status (checking for components that don't exist on Wine is uncommon but d3d11 loads a non-existent library for D3D_DRIVER_TYPE_REFERENCE so I guess it isn't too out of scope)
I also tried looking for tablet PC detection on Linux but I only got results for digitizer detection (which would cause a regular desktop with a drawing tablet attached to be considered a tablet); I wonder what Windows returns if there's a drawing tablet attached to an ordinary desktop
And I can split those 2 cases if you want :frog: