18 Oct
2022
18 Oct
'22
8:04 a.m.
On Tue Oct 18 07:29:09 2022 +0000, Zhiyi Zhang wrote:
I don't like how this is done. Since the display modes passed to drivers are full modes, you can use the position and resolution to determine if a mode is for the primary adapter. The primary adapter mode has an origin of (0, 0) and valid width and height. You can introduce an is_primary_mode() to do that. Alright, there's still the matter of how the CurrentDisplaySettings would figure if the adapter is the primary one or not. I guess I could keep the win32u callbacks in that case, but I'd prefer if drivers would not have to call these win32u functions back.
-- https://gitlab.winehq.org/wine/wine/-/merge_requests/551#note_11054