@@ -29,20 +29,20 @@ void CGSGetDisplayModeDescriptionOfLength(CGDirectDisplayID display, int idx, mo
2929
3030static void detectResolution (FFDisplayServerResult * ds )
3131{
32- void * iokit = dlopen (FASTFETCH_TARGET_DIR_ROOT "/System/Library/Frameworks/CoreGraphics.framework/CoreGraphics" , RTLD_LAZY );
33- if (iokit == NULL )
32+ void * cg = dlopen (FASTFETCH_TARGET_DIR_ROOT "/System/Library/Frameworks/CoreGraphics.framework/CoreGraphics" , RTLD_LAZY );
33+ if (cg == NULL )
3434 return ;
3535
36- FF_LIBRARY_LOAD_SYMBOL (iokit , CGGetOnlineDisplayList , )
37- FF_LIBRARY_LOAD_SYMBOL (iokit , CGDisplayScreenSize , )
38- FF_LIBRARY_LOAD_SYMBOL (iokit , CGSGetCurrentDisplayMode , )
39- FF_LIBRARY_LOAD_SYMBOL (iokit , CGSGetDisplayModeDescriptionOfLength , )
36+ FF_LIBRARY_LOAD_SYMBOL (cg , CGGetOnlineDisplayList , )
37+ FF_LIBRARY_LOAD_SYMBOL (cg , CGDisplayScreenSize , )
38+ FF_LIBRARY_LOAD_SYMBOL (cg , CGSGetCurrentDisplayMode , )
39+ FF_LIBRARY_LOAD_SYMBOL (cg , CGSGetDisplayModeDescriptionOfLength , )
4040
4141 CGDisplayCount screenCount ;
4242 ffCGGetOnlineDisplayList (INT_MAX , NULL , & screenCount );
4343 if (screenCount == 0 )
4444 {
45- dlclose (iokit );
45+ dlclose (cg );
4646 return ;
4747 }
4848
@@ -61,7 +61,7 @@ static void detectResolution(FFDisplayServerResult* ds)
6161 }
6262
6363 free (screens );
64- dlclose (iokit );
64+ dlclose (cg );
6565}
6666
6767void ffConnectDisplayServerImpl (FFDisplayServerResult * ds , const FFinstance * instance )
0 commit comments