diff options
| author | hristo <[email protected]> | 2020-12-29 14:37:08 +0200 |
|---|---|---|
| committer | GitHub <[email protected]> | 2020-12-29 13:37:08 +0100 |
| commit | 75c6fd047bed24146fc6dca0c4a51c8555bc02e3 (patch) | |
| tree | a4224ffc1443eb44fa6447247526b4e41d6817ab /src/core.c | |
| parent | d3db690c422862ba785d9f05f44d5e5068088bde (diff) | |
| download | raylib-75c6fd047bed24146fc6dca0c4a51c8555bc02e3.tar.gz raylib-75c6fd047bed24146fc6dca0c4a51c8555bc02e3.zip | |
Monitor utilites (#1485)
* Added a new utility function to get the current monitor.
Some of the other functions rely on passing on a monitor id but we only have a function for querying the count of monitors available.
* Updated the comment to correctly reflect the function action
Diffstat (limited to 'src/core.c')
| -rw-r--r-- | src/core.c | 10 |
1 files changed, 10 insertions, 0 deletions
@@ -1452,6 +1452,16 @@ int GetMonitorCount(void) #endif } +// Get number of monitors +int GetCurrentMonitor(void) +{ +#if defined(PLATFORM_DESKTOP) + return glfwGetWindowMonitor(CORE.Window.handle); +#else + return 0; +#endif +} + // Get selected monitor width Vector2 GetMonitorPosition(int monitor) { |
