Update RingRayLib - raylib.c - Add Function : int GetMonitorPhysicalHeight(int monitor)
@@ -293,6 +293,20 @@ RING_FUNC(ring_GetMonitorPhysicalWidth)
RING_API_RETNUMBER(GetMonitorPhysicalWidth( (int ) RING_API_GETNUMBER(1)));
}
+
+RING_FUNC(ring_GetMonitorPhysicalHeight)
+{
+ if ( RING_API_PARACOUNT != 1 ) {
+ RING_API_ERROR(RING_API_MISS1PARA);
+ return ;
+ }
+ if ( ! RING_API_ISNUMBER(1) ) {
+ RING_API_ERROR(RING_API_BADPARATYPE);
+ return ;
+ }
+ RING_API_RETNUMBER(GetMonitorPhysicalHeight( (int ) RING_API_GETNUMBER(1)));
+}
+
RING_API void ringlib_init(RingState *pRingState)
{
ring_vm_funcregister("initwindow",ring_InitWindow);
@@ -318,4 +332,5 @@ RING_API void ringlib_init(RingState *pRingState)
ring_vm_funcregister("getmonitorwidth",ring_GetMonitorWidth);
ring_vm_funcregister("getmonitorheight",ring_GetMonitorHeight);
ring_vm_funcregister("getmonitorphysicalwidth",ring_GetMonitorPhysicalWidth);
+ ring_vm_funcregister("getmonitorphysicalheight",ring_GetMonitorPhysicalHeight);
}
