winemac: Use the display unit number rather than display ID for the initial display...
commit66fc13197b6b8eaabd62effcf36d8c27e71c1c97
authorKen Thomases <ken@codeweavers.com>
Tue, 17 Nov 2015 04:11:12 +0000 (16 22:11 -0600)
committerAlexandre Julliard <julliard@winehq.org>
Tue, 17 Nov 2015 13:56:40 +0000 (17 22:56 +0900)
tree31a9a837c70e63d7e2c7fde2060ca59fc1fd74a1
parentd8deecab11b747f764e5982b28463d4095df2434
winemac: Use the display unit number rather than display ID for the initial display mode registry key.

On Macs with dual GPUs that automatically switch, the display ID is not stable.
It changes when the active GPU changes.  The resulted in the lookup of the
initial display mode failing and games not being able to restore it properly.

The display unit number should be more reliable, although still not perfect.

Signed-off-by: Ken Thomases <ken@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
dlls/winemac.drv/display.c