瀏覽代碼

GetCurrentMonitor() bugfix (#3058)

* GetCurrentMonitor() bugfix

* GetCurrentMonitor() bugfix
pull/3066/head
hamyy 1 年之前
committed by GitHub
父節點
當前提交
26a3536958
沒有發現已知的金鑰在資料庫的簽署中 GPG Key ID: 4AEE18F83AFDEB23
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. +1
    -1
      src/rcore.c

+ 1
- 1
src/rcore.c 查看文件

@ -1785,7 +1785,7 @@ int GetCurrentMonitor(void)
monitor = monitors[i];
glfwGetMonitorWorkarea(monitor, &mx, &my, &width, &height);
if (x >= mx && x <= (mx + width) && y >= my && y <= (my + height))
if (x >= mx && x < (mx + width) && y >= my && y < (my + height))
{
index = i;
break;

||||||
x
 
000:0
Loading…
取消
儲存