mirror of
https://github.com/raysan5/raylib.git
synced 2025-09-18 17:28:15 +00:00
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
This commit is contained in:
10
src/core.c
10
src/core.c
@@ -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)
|
||||
{
|
||||
|
Reference in New Issue
Block a user