mirror of
https://github.com/glfw/glfw.git
synced 2026-09-21 00:30:57 +00:00
Cocoa: Only create per-monitor display link once
The display link query is not specific to any particular display mode
and so only needs to be done once.
The next step is to replace the display link altogether by querying
IOKit directly, which is what the display link does.
(cherry picked from commit b4a8eb9b19)
This commit is contained in:
committed by
Camilla Löwy
parent
c3b8afc5d6
commit
7c9d0081e3
@@ -170,6 +170,7 @@ typedef struct _GLFWmonitorNS
|
||||
CGDisplayModeRef previousMode;
|
||||
uint32_t unitNumber;
|
||||
id screen;
|
||||
double fallbackRefreshRate;
|
||||
|
||||
} _GLFWmonitorNS;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user