Module: wine Branch: master Commit: 64f67f412d807337a85cef63c10648c0ccfad600 URL: https://gitlab.winehq.org/wine/wine/-/commit/64f67f412d807337a85cef63c10648c...
Author: Tim Clem tclem@codeweavers.com Date: Tue May 7 14:31:25 2024 -0700
winemac.drv: Document mode_is_preferred.
---
dlls/winemac.drv/display.c | 11 +++++++++++ 1 file changed, 11 insertions(+)
diff --git a/dlls/winemac.drv/display.c b/dlls/winemac.drv/display.c index edf740b260e..b1a5a4500d2 100644 --- a/dlls/winemac.drv/display.c +++ b/dlls/winemac.drv/display.c @@ -457,6 +457,17 @@ static CFDictionaryRef create_mode_dict(CGDisplayModeRef display_mode, BOOL is_o }
+/*********************************************************************** + * mode_is_preferred + * + * Returns whether new_mode ought to be preferred over old_mode - that is, + * whether new_mode is a better option to expose as a valid mode to switch to. + * old_mode may be NULL, in which case the function returns true if the mode + * should be considered at all. + * old_mode and new_mode are guaranteed to have identical return values from + * create_mode_dict. So, they will have the same point dimension and relevant + * IO flags, among other properties. + */ static BOOL mode_is_preferred(CGDisplayModeRef new_mode, CGDisplayModeRef old_mode, struct display_mode_descriptor *original_mode_desc, BOOL include_unsupported)