summaryrefslogtreecommitdiffhomepage
path: root/src/core.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/core.c')
-rw-r--r--src/core.c10
1 files changed, 10 insertions, 0 deletions
diff --git a/src/core.c b/src/core.c
index 6fc20eeb..905367c9 100644
--- a/src/core.c
+++ b/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)
{