Update RingRayLib - raylib.c - Add Function : int GetScreenHeight(void)
@@ -231,6 +231,16 @@ RING_FUNC(ring_GetScreenWidth)
RING_API_RETNUMBER(GetScreenWidth());
}
+
+RING_FUNC(ring_GetScreenHeight)
+{
+ if ( RING_API_PARACOUNT != 0 ) {
+ RING_API_ERROR(RING_API_BADPARACOUNT);
+ return ;
+ }
+ RING_API_RETNUMBER(GetScreenHeight());
+}
+
RING_API void ringlib_init(RingState *pRingState)
{
ring_vm_funcregister("initwindow",ring_InitWindow);
@@ -251,4 +261,5 @@ RING_API void ringlib_init(RingState *pRingState)
ring_vm_funcregister("setwindowsize",ring_SetWindowSize);
ring_vm_funcregister("getwindowhandle",ring_GetWindowHandle);
ring_vm_funcregister("getscreenwidth",ring_GetScreenWidth);
+ ring_vm_funcregister("getscreenheight",ring_GetScreenHeight);
}
