This website works better with JavaScript.
首頁
探索
說明
登入
Archivist
/
raylib-src
镜像来自
https://github.com/raysan5/raylib
關註
1
收藏
0
複製
0
程式碼
問題管理
0
版本發佈
24
Wiki
Activity
瀏覽代碼
GetCurrentMonitor() - check window center instead of top-left corner (
#3468
)
pull/3472/head
Alexandre Almeida
1 年之前
committed by
GitHub
父節點
9a687e3153
當前提交
2f6b2897fe
沒有發現已知的金鑰在資料庫的簽署中
GPG Key ID:
4AEE18F83AFDEB23
共有
1 個文件被更改
,包括
2 次插入
和
0 次删除
分割檢視
Diff Options
Show Stats
Download Patch File
Download Diff File
+2
-0
src/platforms/rcore_desktop.c
+ 2
- 0
src/platforms/rcore_desktop.c
查看文件
@ -755,6 +755,8 @@ int GetCurrentMonitor(void)
int
y
=
0
;
glfwGetWindowPos
(
platform
.
handle
,
&
x
,
&
y
)
;
x
+
=
(
int
)
CORE
.
Window
.
screen
.
width
/
2
;
y
+
=
(
int
)
CORE
.
Window
.
screen
.
height
/
2
;
for
(
int
i
=
0
;
i
<
monitorCount
;
i
+
+
)
{
Write
Preview
Loading…
取消
儲存