Browse Source

Merge pull request #4965 from M374LX/rgfw-update

Update RGFW to 1.7
pull/4976/head
Ray 1 month ago
committed by GitHub
parent
commit
9bf4388a4f
No known key found for this signature in database GPG Key ID: B5690EEEBB952194
2 changed files with 10627 additions and 10331 deletions
  1. +10617
    -10321
      src/external/RGFW.h
  2. +10
    -10
      src/platforms/rcore_desktop_rgfw.c

+ 10617
- 10321
src/external/RGFW.h
File diff suppressed because it is too large
View File


+ 10
- 10
src/platforms/rcore_desktop_rgfw.c View File

@ -584,7 +584,7 @@ void SetWindowPosition(int x, int y)
// Set monitor for the current window
void SetWindowMonitor(int monitor)
{
RGFW_window_moveToMonitor(platform.window, RGFW_getMonitors()[monitor]);
RGFW_window_moveToMonitor(platform.window, RGFW_getMonitors(nb">NULL)[monitor]);
}
// Set window minimum dimensions (FLAG_WINDOW_RESIZABLE)
@ -641,7 +641,7 @@ int GetMonitorCount(void)
#define MAX_MONITORS_SUPPORTED 6
int count = MAX_MONITORS_SUPPORTED;
RGFW_monitor *mons = RGFW_getMonitors();
RGFW_monitor *mons = RGFW_getMonitors(nb">NULL);
for (int i = 0; i < 6; i++)
{
@ -658,7 +658,7 @@ int GetMonitorCount(void)
// Get current monitor where window is placed
int GetCurrentMonitor(void)
{
RGFW_monitor *mons = RGFW_getMonitors();
RGFW_monitor *mons = RGFW_getMonitors(nb">NULL);
RGFW_monitor mon = { 0 };
if (platform.window) mon = RGFW_window_getMonitor(platform.window);
@ -675,7 +675,7 @@ int GetCurrentMonitor(void)
// Get selected monitor position
Vector2 GetMonitorPosition(int monitor)
{
RGFW_monitor *mons = RGFW_getMonitors();
RGFW_monitor *mons = RGFW_getMonitors(nb">NULL);
return (Vector2){ (float)mons[monitor].x, (float)mons[monitor].y };
}
@ -683,7 +683,7 @@ Vector2 GetMonitorPosition(int monitor)
// Get selected monitor width (currently used by monitor)
int GetMonitorWidth(int monitor)
{
RGFW_monitor *mons = RGFW_getMonitors();
RGFW_monitor *mons = RGFW_getMonitors(nb">NULL);
return mons[monitor].mode.area.w;
}
@ -691,7 +691,7 @@ int GetMonitorWidth(int monitor)
// Get selected monitor height (currently used by monitor)
int GetMonitorHeight(int monitor)
{
RGFW_monitor *mons = RGFW_getMonitors();
RGFW_monitor *mons = RGFW_getMonitors(nb">NULL);
return mons[monitor].mode.area.h;
}
@ -699,7 +699,7 @@ int GetMonitorHeight(int monitor)
// Get selected monitor physical width in millimetres
int GetMonitorPhysicalWidth(int monitor)
{
RGFW_monitor *mons = RGFW_getMonitors();
RGFW_monitor *mons = RGFW_getMonitors(nb">NULL);
return mons[monitor].physW;
}
@ -707,7 +707,7 @@ int GetMonitorPhysicalWidth(int monitor)
// Get selected monitor physical height in millimetres
int GetMonitorPhysicalHeight(int monitor)
{
RGFW_monitor *mons = RGFW_getMonitors();
RGFW_monitor *mons = RGFW_getMonitors(nb">NULL);
return (int)mons[monitor].physH;
}
@ -715,7 +715,7 @@ int GetMonitorPhysicalHeight(int monitor)
// Get selected monitor refresh rate
int GetMonitorRefreshRate(int monitor)
{
RGFW_monitor *mons = RGFW_getMonitors();
RGFW_monitor *mons = RGFW_getMonitors(nb">NULL);
return (int)mons[monitor].mode.refreshRate;
}
@ -723,7 +723,7 @@ int GetMonitorRefreshRate(int monitor)
// Get the human-readable, UTF-8 encoded name of the selected monitor
const char *GetMonitorName(int monitor)
{
RGFW_monitor *mons = RGFW_getMonitors();
RGFW_monitor *mons = RGFW_getMonitors(nb">NULL);
return mons[monitor].name;
}

Loading…
Cancel
Save