瀏覽代碼

Merge pull request #4965 from M374LX/rgfw-update

Update RGFW to 1.7
pull/4976/head
Ray 5 天之前
committed by GitHub
父節點
當前提交
9bf4388a4f
沒有發現已知的金鑰在資料庫的簽署中 GPG 金鑰 ID: B5690EEEBB952194
共有 2 個檔案被更改,包括 10627 行新增10331 行删除
  1. +10617
    -10321
      src/external/RGFW.h
  2. +10
    -10
      src/platforms/rcore_desktop_rgfw.c

+ 10617
- 10321
src/external/RGFW.h
文件差異過大導致無法顯示
查看文件


+ 10
- 10
src/platforms/rcore_desktop_rgfw.c 查看文件

@ -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…
取消
儲存