winemac.drv: Simplify control flow in copy_display_modes.
commit5c09278ab6eb7d2611b57bfb2111d043d5d30b2c
authorTim Clem <tclem@codeweavers.com>
Tue, 22 Mar 2022 18:05:59 +0000 (22 11:05 -0700)
committerAlexandre Julliard <julliard@winehq.org>
Wed, 23 Mar 2022 09:55:06 +0000 (23 10:55 +0100)
tree560796af3ad1ebb792dc8824cacddf17dd5fea2d
parent6a062afb75c1e026614403312f2e13207e359634
winemac.drv: Simplify control flow in copy_display_modes.

Introduce a helper function to determine if a mode is preferred over
another.

Signed-off-by: Tim Clem <tclem@codeweavers.com>
Signed-off-by: Huw Davies <huw@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
dlls/winemac.drv/display.c