summaryrefslogtreecommitdiffhomepage
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/rcore.c12
1 files changed, 12 insertions, 0 deletions
diff --git a/src/rcore.c b/src/rcore.c
index 327921fe..807d58f9 100644
--- a/src/rcore.c
+++ b/src/rcore.c
@@ -1832,6 +1832,12 @@ int GetMonitorWidth(int monitor)
}
else TRACELOG(LOG_WARNING, "GLFW: Failed to find selected monitor");
#endif
+#if defined(PLATFORM_ANDROID)
+ if (CORE.Android.app->window != NULL)
+ {
+ return ANativeWindow_getWidth(CORE.Android.app->window);
+ }
+#endif
return 0;
}
@@ -1851,6 +1857,12 @@ int GetMonitorHeight(int monitor)
}
else TRACELOG(LOG_WARNING, "GLFW: Failed to find selected monitor");
#endif
+#if defined(PLATFORM_ANDROID)
+ if (CORE.Android.app->window != NULL)
+ {
+ return ANativeWindow_getHeight(CORE.Android.app->window);
+ }
+#endif
return 0;
}